Re: [CMake] FIND_LIBRARY and PATH_SUFFIXES: documentation or implementation bug

2011-03-24 Thread Michael Hertling
On 03/24/2011 10:55 AM, Marcel Loose wrote: > Hi all, > > I stumbled upon this issue, while trying to track down why > FindPythonLibs finds the static library libpython2.6.a > in /usr/lib64/python2.6/config, instead of the shared library > libpython2.6.so in /usr/lib64 on my system. On my system,

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread Michael Hertling
On 03/24/2011 11:39 PM, David Doria wrote: > On Thu, Mar 24, 2011 at 11:31 AM, Yuri Timenkov wrote: >> Use COMPILE_FLAGS target property. Like this: >> >> set_target_properties(Exec2 PROPERTIES COMPILE_FLAGS "/flag1 /flag2") >> >> You can see full list of properties in CMake documentation. Note th

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread Michael Hertling
On 03/24/2011 03:44 PM, David Doria wrote: > Is there a way to explicitly set the CMAKE_CXX_FLAGS for a particular > executable? That is, if I set CMAKE_CXX_FLAGS and then have a > add_executable line, then change CMAKE_CXX_FLAGS and then have another > add_executable, will the first set of CMAKE_C

[CMake] add_custom_target doesn't create the rule

2011-03-24 Thread hurcan solter
I have a custom command that generates some cpp files from definitions. It goes like that; set (TILE_INPUTS main dngn floor wall feat player gui icons) foreach(tile_name ${TILE_INPUTS}) set(tile_txt "dc-${tile_name}.txt") add_custom_command( OUTPUT "tiledef-${tile_name}.cc"

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread David Doria
On Thu, Mar 24, 2011 at 11:31 AM, Yuri Timenkov wrote: > Use COMPILE_FLAGS target property. Like this: > > set_target_properties(Exec2 PROPERTIES COMPILE_FLAGS "/flag1 /flag2") > > You can see full list of properties in CMake documentation. Note that > compiler flags may be also set for particular

Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols

2011-03-24 Thread Alexander Neundorf
On Thursday 24 March 2011, Chatterjee, Shash wrote: > Hi Alex, > > I have attached a tar file with a tiny example project that shows the > behaviour. Screenshot-1 shows the problem (this is the config included in > the tar file), Screenshot-2 shows the state after I fixed it manually. I had a loo

Re: [CMake] Testing C++ features

2011-03-24 Thread Rolf Eike Beer
Am Samstag, 5. März 2011, 14:20:44 schrieb Rolf Eike Beer: > Hi, > > I would like to have CMake tests for a bunch of C++ features (especially > C++0x ones). Before I start investing time in this I ask here if anyone > already has done this or parts thereof so I don't reinvent the wheel? > > Bill,

Re: [CMake] add_executable - WIN32

2011-03-24 Thread Rolf Eike Beer
Am Donnerstag, 24. März 2011, 11:14:04 schrieb Dixon, Shane: > When I add the line: > > add_executable( myexec WIN32 ${SOURCES} ) > > Do I need to wrap it in a if (WIN32) block or will the WIN32 option just be > ignored in linux? It is ignored on anything but Windows. Care to send a patch to the d

[CMake] add_executable - WIN32

2011-03-24 Thread Dixon, Shane
When I add the line: add_executable( myexec WIN32 ${SOURCES} ) Do I need to wrap it in a if (WIN32) block or will the WIN32 option just be ignored in linux? --- Shane Dixon Linux Engineer / Atmel Corporation Tel: (+1)(719)540-1123 shane.di...@atmel.com / www.atmel.com The infor

Re: [CMake] Warning with ccmake 2.8.4

2011-03-24 Thread Brad King
On 03/10/2011 09:46 AM, Brad King wrote: > This is clearly a bug. Both ccmake and cmake-gui should clear the list of > manually-specified variables of entries used on *any* configure step. This is now fixed upstream: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a4335a62 -Brad __

Re: [CMake] New book shipment / bug tracker

2011-03-24 Thread Bill Hoffman
On 3/23/2011 3:01 AM, Gour wrote: On Tue, 22 Mar 2011 18:38:16 -0400 Lisa Avila wrote: Kitware is pleased to announce that the VTK Textbook is once again in stock! You may order it directly through our online store or through amazon.com(and soon through amazon.co.uk.) Full details on all our t

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread Yuri Timenkov
Use COMPILE_FLAGS target property. Like this: set_target_properties(Exec2 PROPERTIES COMPILE_FLAGS "/flag1 /flag2") You can see full list of properties in CMake documentation. Note that compiler flags may be also set for particular source file with set_source_files_properties command. On Thu, Ma

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread David Doria
On Thu, Mar 24, 2011 at 10:44 AM, David Doria wrote: > Is there a way to explicitly set the CMAKE_CXX_FLAGS for a particular > executable? That is, if I set CMAKE_CXX_FLAGS and then have a > add_executable line, then change CMAKE_CXX_FLAGS and then have another > add_executable, will the first set

[CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-24 Thread David Doria
Is there a way to explicitly set the CMAKE_CXX_FLAGS for a particular executable? That is, if I set CMAKE_CXX_FLAGS and then have a add_executable line, then change CMAKE_CXX_FLAGS and then have another add_executable, will the first set of CMAKE_CXX_FLAGS be applied to the first executable and the

Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols

2011-03-24 Thread Chatterjee, Shash
BTW, the command I used for cmake was: cd build/eclipsetest cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug ../../eclipsetest -Original Message- From: Chatterjee, Shash Sent: Thu 3/24/2011 8:47 AM To: a.neundorf-w...@gmx.net

Re: [CMake] make clean and external projects

2011-03-24 Thread David Cole
On Thu, Mar 24, 2011 at 9:05 AM, Tomasz Grobelny < tom...@grobelny.oswiecenia.net> wrote: > Is it possible to configure cmake in such a way that "make clean" command > executed in root directory of my project also cleans external projects? > -- > Regards, > Tomasz Grobelny > __

[CMake] make clean and external projects

2011-03-24 Thread Tomasz Grobelny
Is it possible to configure cmake in such a way that "make clean" command executed in root directory of my project also cleans external projects? -- Regards, Tomasz Grobelny ___ Powered by www.kitware.com Visit other Kitware open-source projects at htt

[CMake] make clean and install prefix

2011-03-24 Thread Tomasz Grobelny
I have a project which contains one subdirectory and one external project contained in another subdirectory (this is to use different compiler for the "external" project). I don't have administrative privileges on the system, so I need to perform installation to a different directory. I add -DCMAKE

[CMake] FIND_LIBRARY and PATH_SUFFIXES: documentation or implementation bug

2011-03-24 Thread Marcel Loose
Hi all, I stumbled upon this issue, while trying to track down why FindPythonLibs finds the static library libpython2.6.a in /usr/lib64/python2.6/config, instead of the shared library libpython2.6.so in /usr/lib64 on my system. The find module uses PATH_SUFFIXES python${_CURRENT_VERSION}/config,