Re: [CMake] Decompressing a file with cmake
AKHRES Nader ha scritto: is it possible to uncompress a zip file with cmake? One solution could be writing the Find7Zip.cmake file in order to get the executable and use it to uncompress the downloaded file... I know that this solution is not very easy, but it is a solution :-) ___ 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] [CTEST] No CDash submission if error at configure step
Dear all, I'm using CTest script in order to configure/build/test with CMake and submit results to a dashboard. I noticed that if an error occurred at configure step, the script is not going further on but I guess it would submit the configure error message to the dashboard, which is not the case (OK to skip build/test). Is that normal or a bad usage of the commands on my side ? Called Ctest command is the following: SET(CTEST_COMMAND ${CTEST_EXE} -D NightlyStart ${CTEST_EXE} -D NightlyUpdate ${CTEST_EXE} -D NightlyConfigure ${CTEST_EXE} -D NightlyBuild $ENV{SGE_ROOT}/bin/lx24-amd64/qsub -sync y ${CTEST_BINARY_DIRECTORY}/cmake/DashboardScripts/submit_ctest_nightly.job ${CTEST_EXE} -D NightlySubmit -A ${CTEST_SOURCE_DIRECTORY}/cmake/DashboardScripts/ernest_${CONFIG_NAME}.cmake make install ) By the way, I read that there is an old and a new approach to call e.g. build step: - In CTEST_COMMAND, call ctest -D NightlyBuild (as above) - Call 'ctest_build' command Which one should I use ? Thanks for your help, Olivier ___ 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] Decompressing a file with cmake
2010/3/8 Droscy drosc...@yahoo.it: AKHRES Nader ha scritto: is it possible to uncompress a zip file with cmake? One solution could be writing the Find7Zip.cmake file in order to get the executable and use it to uncompress the downloaded file... I know that this solution is not very easy, but it is a solution :-) I didn't looked into it but since there exists a CPack ZIP generator CPack should be able to find for applications which are able to create zip (which in turn may be able to un-compress zip). I don't know if it's done in some .cmake file or embedded in the C++ code of the CPackZIP generator. May be you can have a lookin this direction. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.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
Re: [CMake] CMake 2.8.1 RC 4 is ready to try
Micha Renner wrote: Yes, there are no problems with this version. Did you download some other file (perhaps one with Windows line endings)? It seems so. Zip-files have Windows line endings? http://www.cmake.org/cmake/resources/software.html Windows Source (has \r\n line feeds)cmake-2.8.0.zip Unix/Linux Source (has \n line feeds) cmake-2.8.0.tar.gz -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://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Watcom Support
J Decker wrote: Ooops, missed a linker line that needed LINK_FLAGS added. Also, apparently, the _DEBUG_ modes of C flags dropped the -d2 for writing debug info out. Attattched modified windows-wcl386.cmake. Can you create a bug report and attach the patch? Thanks. -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 bill.hoff...@kitware.com http://www.kitware.com 518 881-4905 (Direct) 518 371-3971 x105 Fax (518) 371-4573 ___ 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] xcode project FOR cmake
everyone: i am trying to make a custom cmake build on my mac. ideally, i would like to set up a xcode project for coding/debugging. i have downloaded sources from kitware and tried to follow instructions in the supplied readme.txt: You already have a version of CMake installed - You can build CMake as any other project with a CMake-based build system: run the installed CMake on the sources of this CMake with your preferred options and generators. Then build it and install it. For instructions how to do this, see http://www.cmake.org/HTML/RunningCMake.html here is what i do (notice: no configure or bootstrap): cd cmake-2.8.0 cmake -GXcode -HSource -B. the generation fails because variables CMake_BINARY_DIR and CMake_SOURCE_DIR remain undefined as seen in CMakeCache.txt. instead, we get: //Value Computed by CMake Project_BINARY_DIR:STATIC=/Users/christian/Projects/cmake //Value Computed by CMake Project_SOURCE_DIR:STATIC=/Users/christian/Projects/cmake/Source i have manually defined the missing vars, the .xcodeproj get eventually created but now it screws up with includes (cmsys dir with templates not found). am i missing something here? i gotta be easier than this. ___ 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] xcode project FOR cmake
ha...@mac.com wrote: everyone: i am trying to make a custom cmake build on my mac. ideally, i would like to set up a xcode project for coding/debugging. i have downloaded sources from kitware and tried to follow instructions in the supplied readme.txt: You already have a version of CMake installed - You can build CMake as any other project with a CMake-based build system: run the installed CMake on the sources of this CMake with your preferred options and generators. Then build it and install it. For instructions how to do this, see http://www.cmake.org/HTML/RunningCMake.html here is what i do (notice: no configure or bootstrap): cd cmake-2.8.0 cmake -GXcode -HSource -B. Do not use -H and -B. (Not mentioned on the page running cmake...) Try this: mkdir cmake-2.8.0-build cd cmake-2.8.0-build cmake -GXcode ../cmake-2.8.0 Why do you need to build CMake itself with Xcode? -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://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Decompressing a file with cmake
The cmake -E tar ... commands will decompress zip files, but only with CVS from the git master branch. The functionality depends on libarchive which is in the git master branch, but is not yet in a CMake release. If you need to use CMake 2.8 or earlier, you'll have to use some other external tool for zip file extraction. If you can use CMake git master then you can use cmake to do the decompression. HTH, David On Sat, Mar 6, 2010 at 6:33 PM, AKHRES Nader nader.akh...@laposte.netwrote: Hello, is it possible to uncompress a zip file with cmake? I use file(download...) to get a zip from an url, but I need to uncompress the downloaded archive... Nader ___ 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] Decompressing a file with cmake
It sounds exactly like what I need (I'm already in a cmake script) but I'd rather stick to an official version for my users up to now. To answer Eric and Droscy, I manage to use an external python script to uncompress (I use python already for other purpose) the downloaded file but I'd rather use the cmake -E tar command as soon as it is available in release flavour. David, have you any idea in which version it is expected to be? CMake 2.9? Nader Le 08/03/2010 17:49, David Cole a écrit : The cmake -E tar ... commands will decompress zip files, but only with CVS from the git master branch. The functionality depends on libarchive which is in the git master branch, but is not yet in a CMake release. If you need to use CMake 2.8 or earlier, you'll have to use some other external tool for zip file extraction. If you can use CMake git master then you can use cmake to do the decompression. HTH, David On Sat, Mar 6, 2010 at 6:33 PM, AKHRES Nader nader.akh...@laposte.net mailto:nader.akh...@laposte.net wrote: Hello, is it possible to uncompress a zip file with cmake? I use file(download...) to get a zip from an url, but I need to uncompress the downloaded archive... Nader ___ Powered by www.kitware.com http://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
[CMake] Change library search order
Hi there! One day I wrote about this problem. I want to change a library search order, but the target_link_libraries command does not allow me specify the search order because there are no BEFORE and AFTER tags. Is there another way to change the search order? Thank you for any advise. BR, Anatoly. ___ 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] Decompressing a file with cmake
Right now, it's best to assume a distant future release -- but there will definitely be a mention of libarchive support when it does go out. Since we just transitioned to git as our repository, we are also revisiting how we build releases. Keep your eyes open for future CMake release notes... On Mon, Mar 8, 2010 at 12:51 PM, AKHRES Nader nader.akh...@laposte.netwrote: It sounds exactly like what I need (I'm already in a cmake script) but I'd rather stick to an official version for my users up to now. To answer Eric and Droscy, I manage to use an external python script to uncompress (I use python already for other purpose) the downloaded file but I'd rather use the cmake -E tar command as soon as it is available in release flavour. David, have you any idea in which version it is expected to be? CMake 2.9? Nader Le 08/03/2010 17:49, David Cole a écrit : The cmake -E tar ... commands will decompress zip files, but only with CVS from the git master branch. The functionality depends on libarchive which is in the git master branch, but is not yet in a CMake release. If you need to use CMake 2.8 or earlier, you'll have to use some other external tool for zip file extraction. If you can use CMake git master then you can use cmake to do the decompression. HTH, David On Sat, Mar 6, 2010 at 6:33 PM, AKHRES Nader nader.akh...@laposte.netwrote: Hello, is it possible to uncompress a zip file with cmake? I use file(download...) to get a zip from an url, but I need to uncompress the downloaded archive... Nader ___ 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] CMAKE_RC_FLAGS has no effect
It sounds like you may have re-discovered this bug in a slightly different form: http://public.kitware.com/Bug/view.php?id=8165 The correct fix for both would be generic enough to properly quote any /D args as needed for the rc compiler, the midl compiler and the C++ compiler. However, this issue is halfway down the queue on the priority scale: not sure when we'll get to it. I think to get it working the way you'd like is going to require cmake source code changes. HTH, David On Sat, Mar 6, 2010 at 8:31 PM, Tony Bridges abrid...@rim.com wrote: Setting a value into the CMAKE_RC_FLAGS field in the CMakeCache.txt file has no effect. I am using the Visual Studio 2005 generator, although I have seen this also reported against VS2009. I am using cmake 2.8 (from source with the midl quoting patch applied) Instead of obeying _*RC*_FLAGS, any values set in CMAKE_CXX_FLAGS are passed to RC.EXE. This presents a problem when attempting to pass a string. The resource compiler requires the quotes around a string to be quoted, like this /D__USER__=\”$(username)\” but passing this same string to the compiler causes it to choke. Conversely, excluding the backslash is valid for the compiler, /D__USER__=”$(username)” but causes the resource compiler to complain of “unknown command”. Is there a way to isolate arguments for the resource compiler only ? Many thanks /tony - This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. ___ 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] This has to have been asked before...
It is presently not possible to iterate over all the targets in CMakeLists.txt unless you maintain your own list of targets. It would be a good feature request to provide the full list of CMake targets using: get_cmake_property(var TARGETS) # for all targets from top level all the way down or get_property(var GLOBAL CMAKE_TARGETS ... # for all targets from top level all the way down or get_property(var DIRECTORY CMAKE_TARGETS ... # for targets just in the current directory However, presently, nothing like this is implemented. Wouldn't be too hard, just hasn't been done yet. HTH, David On Mon, Mar 8, 2010 at 2:11 PM, Oliver Smith osm...@playnet.com wrote: On 3/6/2010 8:04 PM, J Decker wrote: there is a foreach() operator... Well, thanks for trying, but what I actually want to know is how to add something to all the current targets *automatically* - as in without specifying them by hand, and how to get the compiler flags etc of a particular target so that I can *generate* a custom command that matches the given target. get_file_component(pchbase ${PrecompiledHeader} NAME_WE) get_file_component(pchpath ${PrecompiledHeader} PATH) *foreach ( target in LISTS CMAKE_TARGET_LIST )* set(pchname ${CMAKE_BINARY_DIR}/${pchbase}.${target}.h) get_target_properties(defines ${target} COMPILE_DEFINITIONS) get_target_properties(flags ${target} COMPILE_FLAGS) set_target_properties(${target} PROPERTIES COMPILE_FLAGS ${flags} -include ${pchname} -Winvalid-pch) add_custom_command(${target} PRE_BUILD COMMAND ln -s ${pchname} ${PrecompiledHeader} g++ ${defines} ${flags} -o ${pchname}.gch ${pchname}) ) endforeach () Marked in bold is the part I'm struggling with. - Oliver ___ 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] This has to have been asked before...
What I did is define custom functions that wrap add_executable, add_library and target_link_libraries. Works like a charm ;-) Michael On 8. Mar, 2010, at 20:33 , David Cole wrote: It is presently not possible to iterate over all the targets in CMakeLists.txt unless you maintain your own list of targets. It would be a good feature request to provide the full list of CMake targets using: get_cmake_property(var TARGETS) # for all targets from top level all the way down or get_property(var GLOBAL CMAKE_TARGETS ... # for all targets from top level all the way down or get_property(var DIRECTORY CMAKE_TARGETS ... # for targets just in the current directory However, presently, nothing like this is implemented. Wouldn't be too hard, just hasn't been done yet. HTH, David On Mon, Mar 8, 2010 at 2:11 PM, Oliver Smith osm...@playnet.com wrote: On 3/6/2010 8:04 PM, J Decker wrote: there is a foreach() operator... Well, thanks for trying, but what I actually want to know is how to add something to all the current targets *automatically* - as in without specifying them by hand, and how to get the compiler flags etc of a particular target so that I can *generate* a custom command that matches the given target. get_file_component(pchbase ${PrecompiledHeader} NAME_WE) get_file_component(pchpath ${PrecompiledHeader} PATH) *foreach ( target in LISTS CMAKE_TARGET_LIST )* set(pchname ${CMAKE_BINARY_DIR}/${pchbase}.${target}.h) get_target_properties(defines ${target} COMPILE_DEFINITIONS) get_target_properties(flags ${target} COMPILE_FLAGS) set_target_properties(${target} PROPERTIES COMPILE_FLAGS ${flags} -include ${pchname} -Winvalid-pch) add_custom_command(${target} PRE_BUILD COMMAND ln -s ${pchname} ${PrecompiledHeader} g++ ${defines} ${flags} -o ${pchname}.gch ${pchname}) ) endforeach () Marked in bold is the part I'm struggling with. - Oliver ___ 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 ___ 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] CMAKE_RC_FLAGS has no effect
This is also related to this bug: http://public.kitware.com/Bug/view.php?id=10194 The only way I worked around not being able to set RC flags for preprocessor items was to use configure_file with a header that was included by all of my .rc files. James On Mon, Mar 8, 2010 at 11:49 AM, David Cole david.c...@kitware.com wrote: It sounds like you may have re-discovered this bug in a slightly different form: http://public.kitware.com/Bug/view.php?id=8165 The correct fix for both would be generic enough to properly quote any /D args as needed for the rc compiler, the midl compiler and the C++ compiler. However, this issue is halfway down the queue on the priority scale: not sure when we'll get to it. I think to get it working the way you'd like is going to require cmake source code changes. HTH, David On Sat, Mar 6, 2010 at 8:31 PM, Tony Bridges abrid...@rim.com wrote: Setting a value into the CMAKE_RC_FLAGS field in the CMakeCache.txt file has no effect. I am using the Visual Studio 2005 generator, although I have seen this also reported against VS2009. I am using cmake 2.8 (from source with the midl quoting patch applied) Instead of obeying _*RC*_FLAGS, any values set in CMAKE_CXX_FLAGS are passed to RC.EXE. This presents a problem when attempting to pass a string. The resource compiler requires the quotes around a string to be quoted, like this /D__USER__=\”$(username)\” but passing this same string to the compiler causes it to choke. Conversely, excluding the backslash is valid for the compiler, /D__USER__=”$(username)” but causes the resource compiler to complain of “unknown command”. Is there a way to isolate arguments for the resource compiler only ? Many thanks /tony - This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. ___ 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 ___ 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] Change library search order
On Monday 08 March 2010, Anatoly Shirokov wrote: Hi there! One day I wrote about this problem. I want to change a library search order, but the target_link_libraries command does not allow me specify the search order because there are no BEFORE and AFTER tags. Is there another way to change the search order? Why do you want that ? If you specify the libraries to link to with their full path this shouldn't be necessary. Alex ___ 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] Change library search order
Hi Alex! I would like to link to Platform SDK libraries instead of Visual Studio ones. In this case there is no way to specify full path because most of platform SDK files are linked implicitly with the lib pragma (#pragma comment(lib, 'lib')). Any suggestions? BR, Anatoly Alexander Neundorf ?: On Monday 08 March 2010, Anatoly Shirokov wrote: Hi there! One day I wrote about this problem. I want to change a library search order, but the target_link_libraries command does not allow me specify the search order because there are no BEFORE and AFTER tags. Is there another way to change the search order? Why do you want that ? If you specify the libraries to link to with their full path this shouldn't be necessary. Alex ___ 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] This has to have been asked before...
Michael Wild said the following on 3/8/2010 1:35 PM: What I did is define custom functions that wrap add_executable, add_library and target_link_libraries. Works like a charm ;-) *DUH!* Thank you :) - Oliver ___ 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] Watcom Support
http://public.kitware.com/Bug/view.php?id=10388 Uploaded the patch there... (actually twice, the first is a bad patch, the second is a better patch; the first changed line endings to add \r's, fixed the second one) On Mon, Mar 8, 2010 at 6:33 AM, Bill Hoffman bill.hoff...@kitware.com wrote: J Decker wrote: Ooops, missed a linker line that needed LINK_FLAGS added. Also, apparently, the _DEBUG_ modes of C flags dropped the -d2 for writing debug info out. Attattched modified windows-wcl386.cmake. Can you create a bug report and attach the patch? Thanks. -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 bill.hoff...@kitware.com http://www.kitware.com 518 881-4905 (Direct) 518 371-3971 x105 Fax (518) 371-4573 ___ 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] Change library search order
You might consider looking at the link_directories command. Ryan On Mon, Mar 8, 2010 at 3:46 PM, Anatoly Shirokov shiroko...@mail.ru wrote: Hi Alex! I would like to link to Platform SDK libraries instead of Visual Studio ones. In this case there is no way to specify full path because most of platform SDK files are linked implicitly with the lib pragma (#pragma comment(lib, 'lib')). Any suggestions? BR, Anatoly Alexander Neundorf пишет: On Monday 08 March 2010, Anatoly Shirokov wrote: Hi there! One day I wrote about this problem. I want to change a library search order, but the target_link_libraries command does not allow me specify the search order because there are no BEFORE and AFTER tags. Is there another way to change the search order? Why do you want that ? If you specify the libraries to link to with their full path this shouldn't be necessary. Alex ___ 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 -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik ___ 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] adding dependencies on generated files to source code files
Hi All, I’m attempting to add dependencies for generated code into my builds. I have read the wiki article that J Decker posted to me in my last query http://www.vtk.org/Wiki/CMake_FAQ#How_can_I_add_a_dependency_to_a_source_file_which_is_generated_in_a_subdirectory.3F , but unfortunately, it doesn’t answer my current question. Neither has creative use of search keys turned up anything helpful. The problem is : the files that are generated are not dependencies of the top level target (as discussed in the article), they are dependencies of another source file because they are generated includes. If I add the dependency to the executable, there’s no guarantee that the order will be correct, from what I see. i.e. message compiler runs in directory A, produces a .txt output containing string definitions. Generated file is included into an RC file in directory B, within the correct RC context. The piece I’m missing is how to hook a source file as a top level target, without having to reimplement the compilation phase as a custom rule. The makefile equivalent of all this is very simply : myResource.rc : externalGeneratedFile.txt This feels like fairly common usage, so I’m sure I’ve just missed something, but I’m not sure what. many thanks /t ___ 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] adding dependencies on generated files to source code files
On Mon, Mar 8, 2010 at 6:28 PM, Tony Bridges nabrid...@gmail.com wrote: Hi All, The problem is : the files that are generated are not dependencies of the top level target (as discussed in the article), they are dependencies of another source file because they are generated includes. If I add the dependency to the executable, there’s no guarantee that the order will be correct, from what I see. I think pretty much dependencies are handled in-order... unless there is something specifically that requires something else before the first thing. i.e. message compiler runs in directory A, produces a .txt output containing string definitions. Generated file is included into an RC file in directory B, within the correct RC context. The piece I’m missing is how to hook a source file as a top level target, without having to reimplement the compilation phase as a custom rule. it does seem that sources are not targets... but the target they are built into can depend on other targets, which get built before sources are compiled? The makefile equivalent of all this is very simply : myResource.rc : externalGeneratedFile.txt This feels like fairly common usage, so I’m sure I’ve just missed something, but I’m not sure what. many thanks I was just playing with this... cmake_minimum_required(VERSION 2.8) set( FAKE source.h ) #this would be text-.h add_custom_command( OUTPUT source.h #DEPENDS ${SACK_BASE}/all_resources.rc COMMAND echo \#include \stdio.h\ source.h ) # this would be .h used by add_custom_command( OUTPUT main.c DEPENDS source.h COMMAND echo int main( void ) { return 1\; } main.c ) ADD_CUSTOM_TARGET( generate_foo DEPENDS main.c ) # have to touch filea.c fileb.c and filec.c yourself... for brevity... set( SOURCES main.c filea.c fileb.c filec.c ) add_executable( main ${SOURCES} ) # this pretty much makes sure that the header is generated before other tings are compiled. add_dependencies( main generate_foo ) # output after a make clean... [ 0%] Generating source.h [ 0%] Generating main.c [ 25%] Built target generate_foo [ 37%] Building C object CMakeFiles/main.dir/main.c.obj [ 50%] Building C object CMakeFiles/main.dir/a.c.obj [ 62%] Building C object CMakeFiles/main.dir/b.c.obj [ 75%] Building C object CMakeFiles/main.dir/c.c.obj Linking C executable main.exe [100%] Built target main # next output... M:\tmp\zz\zzmake [ 25%] Built target generate_foo [100%] Built target main /t ___ 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] CMake 2.8.1 RC 4 is ready to try
Am Montag, den 08.03.2010, 09:30 -0500 schrieb Bill Hoffman: Micha Renner wrote: Yes, there are no problems with this version. Did you download some other file (perhaps one with Windows line endings)? It seems so. Zip-files have Windows line endings? http://www.cmake.org/cmake/resources/software.html Windows Source (has \r\n line feeds) cmake-2.8.0.zip Unix/Linux Source (has \n line feeds) cmake-2.8.0.tar.gz Oh yes, thank you. I switch frequently my programs between Linux and Windows and I never realized that there was a problem with \r\n and \n. But let us stop here, I got the lesson. Micha ___ 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