[CMake] Clen-up pre-built software

2011-11-22 Thread t m
Hi Community, In the large project we a having periodic taks which build a couple of projects and store the result of the build in one specific place. Once it's build the rest of the team can use this artifacts becouse those are exported by using of export(TARGETS ...) Since the others refer

[CMake] global variable vs cache variable

2011-11-22 Thread t m
Hi Community, I could not found any other possibilites to set some global variable than using a cache variable. Even if this is not nice sometimes you need to have a global variable. So I would like to ask about advice in this area: 1) Is this the real use case for cache, so to use it as a

Re: [CMake] global variable vs cache variable

2011-11-22 Thread t m
Use the cache only if the values need to be persistent. Otherwise I recommend using a GLOBAL property. See set_property() and get_property(). Michael Thank you Michael. Looks good. So let me summarize. The workflow should looks like follow: 1. Top Level CMakeLists.txt: add_subdirectory( foo

Re: [CMake] hook __EOF__

2011-08-15 Thread t m
Hi All, I guess it's not commonly used feature. Does anyone who knows a code of cmake a bit can provide information if that's possible at all? Thanks, T Majchrowski. 2011/8/11 t m cm...@majchrowski.co.uk: Hi All, Is it possible to register hook function that will be called at the end

Re: [CMake] touch flag once all (target) sucess

2011-08-12 Thread t m
I would like to touch flag file in the CMAKE_BINARY_DIR once the target all is executed with sucess. Since currently I'm not able to specify the dependency to this build-in target I do not have any hook to recognize if all sucess and 1. Does anyone knows any hint that can help me with this

Re: [CMake] touch flag once all (target) sucess

2011-08-11 Thread t m
Hi All, I would like to touch flag file in the CMAKE_BINARY_DIR once the target all is executed with sucess. Since currently I'm not able to specify the dependency to this build-in target I do not have any hook to recognize if all sucess and to touch file. 1. Does anyone knows any hint

[CMake] hook __EOF__

2011-08-11 Thread t m
Hi All, Is it possible to register hook function that will be called at the end of processinf of CMakeLists.txt: Example CMakeLists.txt 0:cmake_minimum_required( VERSION 2.6 ) 1:project( foo.project) 2: 3: add_subdirectory( example ) 4: ... N: -- last line of CMakeLists.txt this will trigger to

[CMake] touch flag once all (target) sucess

2011-08-04 Thread t m
Hi All, I would like to touch flag file in the CMAKE_BINARY_DIR once the target all is executed with sucess. Since currently I'm not able to specify the dependency to this build-in target I do not have any hook to recognize if all sucess and to touch file. 1. Does anyone knows any hint that can

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-21 Thread t m
Hi James, Thanks you for feedback. See my comments: I dismissed the idea of using the cmake dependency scanner, because it was a makefile only solution.  I wasn't interested in maintaining multiple code paths.  It's much better for testing to have it work basically the same way everywhere.

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-17 Thread t m
As far as I correctly understood patch from Peter, implementation for makefile dependency is on place. For me makefile dependency is fine, since I'm using only makefiles. I just tried to understand idea of LANGUAGE inside cmake. I think that in this particular case having new language on

[CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-07 Thread t m
Hi I've two topics related to the support for custom lang in cmake. I hope you can help me. 1) Does anyone knows plan about merge the following feature related to the CUDA: http://public.kitware.com/Bug/view.php?id=11887 I'm in the process of integrating the CUDA Toolkit into our build

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-07 Thread t m
I think the big problem is that this will only work correctly in makefile based systems.  So, VS and Xcode will not work with this version of the Cuda stuff. I understand that you would like to avoid merge changes that potentially are not adopted to all platforms/IDEs supported by CMake itself.

Re: [CMake] LINK_FLAGS works incorrectly,

2011-04-18 Thread t m
I got a simple question, What is idea behind target property LINK_FLAGS? When I add linker flag e.g --no-undefined then cmake is not alligning it to real linker that will be used during linking. for example --no-undefined is a valid ld switch, but when I specify it LINK_FLAGS it will not

Re: [CMake] CMake list and Single square brackets

2009-07-27 Thread t m
Looks like a bug. Submitted: http://public.kitware.com/Bug/view.php?id=9317 Regards, Tomek. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

[CMake] CMake list and Single square brackets

2009-07-24 Thread t m
Hello All, Can anyone explain me why in the 3rd call of message function the following code will return 1 instead of 2 cmake_minimum_required( VERSION 2.6 ) set (_list) set (_list foo;bar)# 2 items list (LENGTH _list _len) message (STATUS _len=${_len})# 2 set (_list) set (_list foo[];bar)#2

[CMake] post and pre processing for the Cpack target (package/package_source)

2009-07-09 Thread t m
Hello CMake Experts, Is there any way to define post or pre-processing actions for built-in targets like package/package_source. Those two are not visible in CMakeLists.txt scope, so the add_dependencies(package_source pre_package_source) can not be used. What I found is the solution described