Re: [CMake] Question about variables, cache, and scope

2011-10-10 Thread Bill Hoffman
On 10/10/2011 3:52 PM, Robert Dailey wrote: Yes, this works perfectly. It's a bit disappointing that cache variables are, for all intents and purposes, read-only in functions. The property approach is a bit more verbose but it functions! I think 'set' needs a new override specifically for cases

Re: [CMake] Question about variables, cache, and scope

2011-10-10 Thread Robert Dailey
Yes, this works perfectly. It's a bit disappointing that cache variables are, for all intents and purposes, read-only in functions. The property approach is a bit more verbose but it functions! I think 'set' needs a new override specifically for cases like this. Something similar to "PARENT_SCOPE"

Re: [CMake] Question about variables, cache, and scope

2011-10-10 Thread Glenn Coombs
Calling a function pushs a new variable scope. All variables visible in the callers scope are copied into the new scope but changes by default only affect the callee scope. You could try using the PARENT_SCOPE option to the set command but I'm not sure that will achieve what you want as it only g

[CMake] CTest print output value

2011-10-10 Thread mohamed sahraoui
Hi , I would like to generate a txt report including various informations produced by each test execution. my ideas was in a second step to post this cover test onto a cdash portal. My CMakeLists.txt produce a well formed CTestTestfile.cmake file with the following a classical structure :

[CMake] Question about variables, cache, and scope

2011-10-10 Thread Robert Dailey
I have a function that I define in my top-most CMakeLists.txt file (on Windows using CMake version 2.8.6) called define_project() that calls add_executable, sets up compile defintions, etc etc. For each time define_project() is called *anywhere* in the directory hierarchy, I need to increment a gl

Re: [CMake] Contribute two new find package implementation.

2011-10-10 Thread Mathias Fröhlich
Hi, On Monday 10 October 2011, Michael Hertling wrote: > AFAICS from Mathias' FindRTI1516{,E}.cmake modules, the libraries have > different names, but their respective header files are named the same: > > FIND_LIBRARY(RTI1516_LIBRARY NAMES rti1516 RTI1516 ...) > FIND_LIBRARY(RTI1516E_LIBRARY NA

Re: [CMake] not found library with package configuration files and changed CMAKE_INSTALL_PREFIX

2011-10-10 Thread Rolf Eike Beer
> Hei hei, > > On Wed, 21 Sep 2011 16:42:37 +0200, Alexander Dahl wrote: >>> The foo-targets.cmake file contains "foo-shared" as imported target, >>> and it is this name that must be supplied to TARGET_LINK_LIBRARIES(). >>> Besides, the DESTINATION clause of INSTALL() should be qualified with >>> A

Re: [CMake] Contribute two new find package implementation.

2011-10-10 Thread Mathias Fröhlich
Hi, On Friday 07 October 2011, Eric Noulard wrote: > Ok I understand. > I'll get in touch with Petr to see if he has time to update its > contribution if he has not I may offer to take over. Ok, So I am around and can respond to questions more or less timely but I am not monitoring the mailing l

Re: [CMake] not found library with package configuration files and changed CMAKE_INSTALL_PREFIX

2011-10-10 Thread Alexander Dahl
Hei hei, On Wed, 21 Sep 2011 16:42:37 +0200, Alexander Dahl wrote: >> The foo-targets.cmake file contains "foo-shared" as imported target, >> and it is this name that must be supplied to TARGET_LINK_LIBRARIES(). >> Besides, the DESTINATION clause of INSTALL() should be qualified with >> ARCHIVE/L

Re: [CMake] run tests on 5 machines

2011-10-10 Thread Eric Noulard
2011/10/10 Mihai Sandu : > How can I run tests on 5 machines in same time? > This is how I run the tests on a machine: > > execute_process (COMMAND ssh user@host "ctest -VV -O file.txt -S > Test.cmake") > > and I want to run this command in the same time on 5 machines. May be you can try pssh: htt

[CMake] run tests on 5 machines

2011-10-10 Thread Mihai Sandu
How can I run tests on 5 machines in same time? This is how I run the tests on a machine: execute_process (COMMAND ssh user@host "ctest -VV -O file.txt -S Test.cmake") and I want to run this command in the same time on 5 machines. Thanks you. -- Powered by www.kitware.com Visit other Kitware o