[cmake-developers] Why BUILD_DOCUMENTATION=ON requires VTK

2011-03-24 Thread Nicolas Desprès
Hi, Just a little question. In Utilities/Doxygen/CMakeLists.txt, FindVTK.cmake is included if BUILD_DOCUMENTATION is on. I don't have VTK installed so it keeps complaining because it cannot find it. But I need the Doxygen documentation to browse the code. I don't understand why building the

[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,

[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

[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

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

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 -GEclipse 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

[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

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 daviddo...@gmail.com 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,

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, Mar

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 Avilalisa.av...@kitware.com 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.)

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

[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

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

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] 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 look at

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 y...@timenkov.ru 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

[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 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

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 y...@timenkov.ru 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.

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,

[Cmake-commits] CMake branch, next, updated. v2.8.4-1265-gfccdca9

2011-03-24 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via fccdca95de7e2381701883bdb68db496bc3e46ce (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1267-ge2aa38f

2011-03-24 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via e2aa38f335e2212cf955d7bb9fd1e0ae0da6ec27 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-250-g9b6e16f

2011-03-24 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 9b6e16f031a8a9fab15bc949785906c4a56dfc6e (commit) from