Re: [cmake-developers] new Generator
On 04.07.2012 02:10, J Decker wrote: ninja looks promising as an inbetween; lcc of course has it's own make. I however don't find ninja on windows latest download... there's a couple references in the /share/ Unofficial binaries you could find here: http://sourceforge.net/projects/cmakescript/files/ altneratively some other flavors of visual studio projects These would most likely be sub-classes of the existing generators. What flavors where you thinking of? (chocolate, vanilla?) :) a flag to enable generating a line when compiling CLR which allows adding references to .NET things to the project. (soemthing that has to be manually set for each target) something likeCLRSupportrue/CLRSupport http://www.mail-archive.com/cmake@cmake.org/msg39818.html Might also be just a flag or two set on existing generators. -Bill -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
[cmake-developers] [CMake 0013375]: Xcode generator does not add path to source groups
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13375 == Reported By:Francois Best Assigned To: == Project:CMake Issue ID: 13375 Category: CMake Reproducibility:always Severity: minor Priority: normal Status: new == Date Submitted: 2012-07-04 18:54 EDT Last Modified: 2012-07-04 18:54 EDT == Summary:Xcode generator does not add path to source groups Description: The Xcode generator does not add the path information to generated source groups. All groups remain to the path of the project, although the architecture is generated and displayed correctly. The point of having the path set is to add new files directly to the right location from within Xcode (eg using template files) without having to duplicate/move anything, just to edit the CMakeLists.txt. Steps to Reproduce: Generate any Xcode project with source groups. Additional Information: Note: the group path system can be quite elaborated, using the parent group as a reference and using relative paths, but this might be a bit overkill, absolute path would do the job nicely. A problem with this is that one may want to create a source group that does not represent a physical folder on the fillesystem (just a way to sort things up). In this case (I don't know if that's easy to detect for you guys), a solution would be to keep the parent group path and define this group as Relative to enclosing group. == Issue History Date ModifiedUsername FieldChange == 2012-07-04 18:54 Francois Best New Issue == -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
[cmake-developers] [CMake 0013376]: For unset variables IF(${var}) and IF(NOT ${var}) both return FALSE which fails to work for predefined vars such as CYGWIN
The following issue has been SUBMITTED. == http://cmake.org/Bug/view.php?id=13376 == Reported By:Bruce Cartland Assigned To: == Project:CMake Issue ID: 13376 Category: CMake Reproducibility:always Severity: minor Priority: low Status: new == Date Submitted: 2012-07-04 22:59 EDT Last Modified: 2012-07-04 22:59 EDT == Summary:For unset variables IF(${var}) and IF(NOT ${var}) both return FALSE which fails to work for predefined vars such as CYGWIN Description: (I'm a noob so please excuse if this is already report, not formatted correctly, or invalid :) See steps to reproduce. Steps to Reproduce: message(STATUS CYGWIN = '${CYGWIN}') if(${CYGWIN}) message(STATUS CYGWIN set) else() set(CYGWIN 0) #this fixes the problem and results in expected behaviour message(STATUS CYGWIN not set) endif() if(NOT ${CYGWIN}) message(STATUS CYGWIN not set) else() message(STATUS CYGWIN set - or is it?) endif() Additional Information: The script in steps to reproduce results in the following output: -- CYGWIN = '' -- CYGWIN not set -- CYGWIN set - or is it? Seems to me that FALSE should be defined to include blank as well as NO, etc OR variables such as CYGWIN should be set to 0 and not left blank. == Issue History Date ModifiedUsername FieldChange == 2012-07-04 22:59 Bruce Cartland New Issue == -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [CMake] Failed to submit ctest report to public.kitware.com CDash server
Thanks David. The wiki page I referenced is from http://cmake.org/Wiki/CMake/Testing_With_CTest. But I am not running ctest at VTK package, rather try to test cdash from my own source package build, I added the setup from your link to the CMakeLists.txt, but still failed at the same problem of couldn't resolve host. Submit files (using http) Using HTTP submit method Drop site:http:// Submit failed, waiting 5 seconds... Retry submission: Attempt 1 of 3 Submit failed, waiting 5 seconds... Retry submission: Attempt 2 of 3 Submit failed, waiting 5 seconds... Retry submission: Attempt 3 of 3 Error message was: Couldn't resolve host ' Problems when submitting via HTTP David Cole wrote The correct CTEST_DROP_* variable values are listed in VTK's CTestConfig.cmake file: http://vtk.org/gitweb?p=VTK.git;a=blob;f=CTestConfig.cmake;h=b7f08577cd5073e009e5fbc7e0d7be238be5b94b;hb=master After configuring a VTK build tree, you should just be able to run: ctest -D Experimental in the build tree. You should NOT have to set any of these variables anywhere to submit a VTK dashboard... What wiki page are you referring to?? (I'm pretty sure whichever one it is, it contains some seriously outdated information at this point, and we should clean it up...) Thanks, and hope this helps, David -- View this message in context: http://cmake.3232098.n2.nabble.com/Failed-to-submit-ctest-report-to-public-kitware-com-CDash-server-tp7580733p7580743.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Can multiple make commands be set in BUILD_COMMAND for ExternalProject_Add?
Hi, In ExternalProject_Add, BUILD_COMMAND make works fine, but I need to add multiple make commands. In Linux command line I can type make make extra, but how can I set following BUILD_COMMAND for multiple make commands, it just not working? BUILD_COMMAND make make extra INSTALL_COMMAND make install make extra-install Thank you. Kind regards, Jupiter -- View this message in context: http://cmake.3232098.n2.nabble.com/Can-multiple-make-commands-be-set-in-BUILD-COMMAND-for-ExternalProject-Add-tp7580744.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Failed to submit ctest report to public.kitware.com CDash server
hce wrote: Thanks David. The wiki page I referenced is from http://cmake.org/Wiki/CMake/Testing_With_CTest. But I am not running ctest at VTK package, rather try to test cdash from my own source package build, I added the setup from your link to the CMakeLists.txt, but still failed at the same problem of couldn't resolve host. Submit files (using http) Using HTTP submit method Drop site:http:// Of course it does, because the drop site is not set. And CTest should really be tought to do something sensible then and not trying to contact the universe and then complain it doesn't listen. Eike -- signature.asc Description: This is a digitally signed message part. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Can multiple make commands be set in BUILD_COMMAND for ExternalProject_Add?
On 07/04/2012 08:37 AM, hce wrote: Hi, In ExternalProject_Add, BUILD_COMMAND make works fine, but I need to add multiple make commands. In Linux command line I can type make make extra, but how can I set following BUILD_COMMAND for multiple make commands, it just not working? BUILD_COMMAND make make extra INSTALL_COMMAND make install make extra-install Thank you. Kind regards, Jupiter What's wrong with? BUILD_COMMAND make all extra INSTALL_COMMAND make install extra-install HTH Michael -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Install same files to multiple destination
Hi, I need to install the same files (actually a directory, it doesn't change anything) to several destination. Typically, I need to install the same header files to include and sys-include (no question about that, this is mandatory). I thought I could specify multiple DESTINATION flags in intall command, like install (DIRECTORY ${PROJECT_SOURCE_DIR}/include/sys/${SYSTEM}/ DESTINATION ${INCLUDE_DEST1} DESTINATION ${INCLUDE_DEST2} PATTERN private EXCLUDE) but CMake doesn't like that. Easy solution would be to make two install commands, or include this command in a macro to avoid code copy. Do you see a better way? BTW, I am using cmake 2.6 Thanks, -- Jérôme -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Install same files to multiple destination
Hi Jerome, you can use two install() commands. I use this often, and I see nothing wrong with it. As you said, if you want to avoid code duplication, you can make a macro for it. Petr On Wed, Jul 4, 2012 at 9:41 AM, Jérôme Reybert jreyb...@gmail.com wrote: Hi, I need to install the same files (actually a directory, it doesn't change anything) to several destination. Typically, I need to install the same header files to include and sys-include (no question about that, this is mandatory). I thought I could specify multiple DESTINATION flags in intall command, like install (DIRECTORY ${PROJECT_SOURCE_DIR}/include/sys/${SYSTEM}/ DESTINATION ${INCLUDE_DEST1} DESTINATION ${INCLUDE_DEST2} PATTERN private EXCLUDE) but CMake doesn't like that. Easy solution would be to make two install commands, or include this command in a macro to avoid code copy. Do you see a better way? BTW, I am using cmake 2.6 Thanks, -- Jérôme -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Failed to submit ctest report to public.kitware.com CDash server
Rolf Eike Beer wrote Of course it does, because the drop site is not set. And CTest should really be tought to do something sensible then and not trying to contact the universe and then complain it doesn't listen. So both drop site http://public.kitware.com/cgi-bin/HTTPUploadDartFile.cgi and http://www.cdash.org/CDash/submit.php?project=VTK are not set for public cdash test, they are only available for VTK or other kitware projects, correct? To test cdash from my own project, I should set up the cdash in http://my.cdash.org/, correct? Thank you. Jupiter -- View this message in context: http://cmake.3232098.n2.nabble.com/Failed-to-submit-ctest-report-to-public-kitware-com-CDash-server-tp7580733p7580749.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Downgrade CMake
I am running through same issue. I am working on a project, which is like one year old. I don't what cmake version was used in it. I am having cmake-2.8.8 installed in my macbook. When I try to run the project I get following error - make: *** No rule to make target `/opt/local/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in', needed by `CMakeFiles/cmake.check_cache'. Stop. I think, may be its because of the different version(Just a random guess. I am really new to all these things.) So, I thought may be downgrading to same version might help. Any pointers? Please. I am really stuck. Thanks. Regards, Vaibhav Tekam -- View this message in context: http://cmake.3232098.n2.nabble.com/Downgrade-CMake-tp7567867p7580750.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Relink external project
I continue adapt external_project-style build for my projects. I found out that my main project is not relinked, when external project on which it depends was changed. How can i do that? In my opinion importing all external projects libs is not good idea. cmake - 2.8.3. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Relink external project
And i would be grateful for links to open-source cmake-based projects, which use external_project module. On Wed, Jul 4, 2012 at 6:26 PM, Evgeny Startsev exbluesbrea...@gmail.comwrote: I continue adapt external_project-style build for my projects. I found out that my main project is not relinked, when external project on which it depends was changed. How can i do that? In my opinion importing all external projects libs is not good idea. cmake - 2.8.3. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Downgrade CMake
Am Mittwoch, 4. Juli 2012 um 05:05:48, schrieb vaibhavt tekamvaibha...@gmail.com I am running through same issue. I am working on a project, which is like one year old. I don't what cmake version was used in it. I am having cmake-2.8.8 installed in my macbook. When I try to run the project I get following error - make: *** No rule to make target `/opt/local/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in', needed by `CMakeFiles/cmake.check_cache'. Stop. I think, may be its because of the different version(Just a random guess. I am really new to all these things.) So, I thought may be downgrading to same version might help. Any pointers? Somehow you are using _old_ CMakeCache.txt file. I would delete this file first and try again. Please. I am really stuck. Thanks. Regards, Vaibhav Tekam Kornel signature.asc Description: This is a digitally signed message part. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Can multiple make commands be set in BUILD_COMMAND for ExternalProject_Add?
On Wed, Jul 4, 2012 at 3:35 AM, Michael Wild them...@gmail.com wrote: On 07/04/2012 08:37 AM, hce wrote: Hi, In ExternalProject_Add, BUILD_COMMAND make works fine, but I need to add multiple make commands. In Linux command line I can type make make extra, but how can I set following BUILD_COMMAND for multiple make commands, it just not working? BUILD_COMMAND make make extra INSTALL_COMMAND make install make extra-install Thank you. Kind regards, Jupiter What's wrong with? BUILD_COMMAND make all extra INSTALL_COMMAND make install extra-install HTH Michael -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake Michael' suggestion is a good one. But ... to do the equivalent of in an ExternalProject_Add call, simply repeat the COMMAND keyword: Not this: BUILD_COMMAND make make extra INSTALL_COMMAND make install make extra-install But this: BUILD_COMMAND make COMMAND make extra INSTALL_COMMAND make install COMMAND make extra-install Also, if you're going to hard-code make, use $(MAKE) instead so that the parallel job specification given to the top-level make is inherited by the child processes too: BUILD_COMMAND $(MAKE) COMMAND $(MAKE) extra INSTALL_COMMAND $(MAKE) install COMMAND $(MAKE) extra-install HTH, David -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] set ranlib/ar in toolchain file
Hi, I try to set up my toolchain file for building Windows executables in a Linux environment. I started with the example from http://www.cmake.org/Wiki/CmakeMingw The only thing I noticed was that I needed to use ar and ranlib from MinGW as well, for creating the archives. I can do this by manually editing the file CMakeFiles/CMakeCXXCompiler.cmake after cmake has run. Code compiles successfully. I then tried to add the following two lines to the toolchain file: SET(CMAKE_AR i486-mingw32-ar) SET(CMAKE_RANLIB i486-mingw32-ranlib) (yes, the prefix for my MinGW install is different from the example) Sadly, that makes the initial compiler test fail. For fortran it actually still works, but the test fails for c and c++. I have tried to search for a while without finding out what I do wrong. Please tell me. Or ask if something is unclear. Thanks! Cheers, Yngve -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] set ranlib/ar in toolchain file
Hi, I try to set up my toolchain file for building Windows executables in a Linux environment. I started with the example from http://www.cmake.org/Wiki/CmakeMingw The only thing I noticed was that I needed to use ar and ranlib from MinGW as well, for creating the archives. I can do this by manually editing the file CMakeFiles/CMakeCXXCompiler.cmake after cmake has run. Code compiles successfully. I then tried to add the following two lines to the toolchain file: SET(CMAKE_AR i486-mingw32-ar) SET(CMAKE_RANLIB i486-mingw32-ranlib) (yes, the prefix for my MinGW install is different from the example) Sadly, that makes the initial compiler test fail. For fortran it actually still works, but the test fails for c and c++. I have tried to search for a while without finding out what I do wrong. Please tell me. Or ask if something is unclear. Thanks! Cheers, Yngve -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Paths with spaces - Visual Studio
Hi, I had a problem with a source path containing spaces: SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def) where CMAKE_CURRENT_SOURCE_DIR had spaces. That casued problems in the visual studio project. I quoted the above as this: . \/DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def\) and it 'fixed' it. Question is. Is that the preferred way? thanks, Totte -- . Totte Karlsson, Ph.D. Dune Scientific, LLC 425-296 1980 (office) 425-780 9648 (cell) www.dunescientific.com . -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Paths with spaces - Visual Studio
The preferred way is simply to add the def file as a source file of your library or executable: add_library(my lib SHARED ${cxx_sources} ${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def ) Then you don't need to modify the linker flags at all. HTH, David On Wed, Jul 4, 2012 at 1:03 PM, Totte Karlsson to...@dunescientific.com wrote: Hi, I had a problem with a source path containing spaces: SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def) where CMAKE_CURRENT_SOURCE_DIR had spaces. That casued problems in the visual studio project. I quoted the above as this: . \/DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def\) and it 'fixed' it. Question is. Is that the preferred way? thanks, Totte -- . Totte Karlsson, Ph.D. Dune Scientific, LLC 425-296 1980 (office) 425-780 9648 (cell) www.dunescientific.com . -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Paths with spaces - Visual Studio
On 7/4/2012 12:01 PM, David Cole wrote: The preferred way is simply to add the def file as a source file of your library or executable: add_library(my lib SHARED ${cxx_sources} ${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def ) That makes sense. I'm using different def file for different compilers, but I guess one can 'construct' a file name before adding to add_library. Is the spaces problem present for all flags and 'options' to cmake functions? tk Then you don't need to modify the linker flags at all. HTH, David On Wed, Jul 4, 2012 at 1:03 PM, Totte Karlsson to...@dunescientific.com wrote: Hi, I had a problem with a source path containing spaces: SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def) where CMAKE_CURRENT_SOURCE_DIR had spaces. That casued problems in the visual studio project. I quoted the above as this: . \/DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def\) and it 'fixed' it. Question is. Is that the preferred way? thanks, Totte -- . Totte Karlsson, Ph.D. Dune Scientific, LLC 425-296 1980 (office) 425-780 9648 (cell) www.dunescientific.com . -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] set ranlib/ar in toolchain file
2012/7/4 Yngve Inntjore Levinsen yngve.levin...@gmail.com: Hi, I try to set up my toolchain file for building Windows executables in a Linux environment. I started with the example from http://www.cmake.org/Wiki/CmakeMingw The only thing I noticed was that I needed to use ar and ranlib from MinGW as well, for creating the archives. I can do this by manually editing the file CMakeFiles/CMakeCXXCompiler.cmake after cmake has run. Code compiles successfully. I then tried to add the following two lines to the toolchain file: SET(CMAKE_AR i486-mingw32-ar) SET(CMAKE_RANLIB i486-mingw32-ranlib) You shouldn't need to set CMAKE_AR or CMAKE_RANLIB yourself. Could you try the toolchain file I uploaded here http://www.cmake.org/Wiki/images/c/c2/Toolchain-cross-mingw32-linux.cmake (refered on the very same page you used: http://www.cmake.org/Wiki/CmakeMingw) If you SET(COMPILER_PREFIX i486-mingw32) it should work out of the box. (yes, the prefix for my MinGW install is different from the example) Sadly, that makes the initial compiler test fail. For fortran it actually still works, but the test fails for c and c++. I have tried to search for a while without finding out what I do wrong. Please tell me. Or ask if something is unclear. What is the exact command line you used when invoking CMake with you Toolchain file ? Did you try from a pristine build tree? Using the provided toolchain, after you updated with the proper prefix if you put the toolchain file at the root of your source tree, then you can do: cd sourcedir mkdir build-win32 cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-cross-mingw32-linux.cmake .. should work as expected without tweaking AR or RANLIB. -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Using ${CMAKE_CFG_INTDIR} in ADD_TEST property WORKING_DIRECTORY
Some tests that I run need to access files (using a relative path) that are located in the same directory as the test executable itself. So I'm trying to use ADD_TEST property WORKING_DIRECTORY in the following way: ADD_TEST( NAME mytest WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR} COMMAND myexec) When using a multiple configuration build system like Visual Studio, I expect the working directory to be set, in the example of a debug build, to c:/path/to/runtime/dir/Debug, but it fails. To test that I've printed the return of getcwd(), which would bec:/path/to/runtime/ in this particular example. I've also tried to hard code c:/path/to/runtime/dir/Debug as the working direcory property of the add_test command, it works fine. So I'm wondering if CMAKE_CFG_INTDIR can be used in that case, or if there are other solutions to acheive this objective ? I know I could use $TARGET_FILE_DIR:myexec as an argument of my test command, but this is not the test I want to do. I also tried the command explained in that thread: http://www.mail-archive.com/cmake@cmake.org/msg24194.html. I did this simple test case : add_test(mytest ${CMAKE_COMMAND} -E chdir c:/ $TARGET_FILE:myexec), but it fails to execute. I don't really understand this syntax, it seems that it tries to run 2 commands sequentially. Is this is supposed to work ? My environment is CMake 2.8.8, Visual Studio 2010, Windows XP. Best regards Guillaume -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Can multiple make commands be set in BUILD_COMMAND for ExternalProject_Add?
Thanks David and Michael. Cheers. Jupiter -- View this message in context: http://cmake.3232098.n2.nabble.com/Can-multiple-make-commands-be-set-in-BUILD-COMMAND-for-ExternalProject-Add-tp7580744p7580763.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake