Re: [CMake] Complaint about if..endif

2008-11-21 Thread Philip Lowman
On Sat, Nov 22, 2008 at 12:17 AM, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > Why must endif() contain the same expression as the associated if() > command? Isn't CMake smart enough to know that a simple occurrence of > "endif()" simply matches the previous if(), regardless of its expressio

[CMake] ALL_BUILD and ZERO_CHECK

2008-11-21 Thread Robert Dailey
Hi, Is there a purpose for these 2 projects? They are generated when I run: cmake -G "Visual Studio 9 2008" Is there a way to prevent CMake from generating these 2 projects? I really don't need them. ___ CMake mailing list CMake@cmake.org http://www.cm

[CMake] Complaint about if..endif

2008-11-21 Thread Robert Dailey
Hi, Why must endif() contain the same expression as the associated if() command? Isn't CMake smart enough to know that a simple occurrence of "endif()" simply matches the previous if(), regardless of its expression list? Are there any plans to simplify this? The way it is now is redundant and boil

Re: [CMake] reading a variable causes a segfault

2008-11-21 Thread Pablo Yánez Trujillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi ok, I'll try to reproduce it and test with the new versions of CMake. Pablo Bill Hoffman wrote: > Pablo Yanez Trujillo wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi >> >> I'm using (on a Gentoo/Linux) box cmake version 2.4

Re: [CMake] Visual Studio Warning Level

2008-11-21 Thread Bill Hoffman
Robert Dailey wrote: Hi, I've done some googling on how to set warning levels for visual studio projects generated with CMake and I can't say I really enjoy the proposed solutions I've found. Literally this should be a single function call like: cmake_warning_level( 4 ) I expected somethin

Re: [CMake] Portable preprocessor defines?

2008-11-21 Thread Bill Hoffman
Robert Dailey wrote: Hi, I want to define a preprocessor directive through CMakeLists.txt, however the only documented method of doing this that I see is *add_definitions()*. Is there a better way of doing this? According to the documentation this isn't 100% portable, which in my opinion defe

[CMake] Visual Studio Warning Level

2008-11-21 Thread Robert Dailey
Hi, I've done some googling on how to set warning levels for visual studio projects generated with CMake and I can't say I really enjoy the proposed solutions I've found. Literally this should be a single function call like: cmake_warning_level( 4 ) I expected something simple like above, but in

[CMake] Portable preprocessor defines?

2008-11-21 Thread Robert Dailey
Hi, I want to define a preprocessor directive through CMakeLists.txt, however the only documented method of doing this that I see is *add_definitions()*. Is there a better way of doing this? According to the documentation this isn't 100% portable, which in my opinion defeats the entire purpose of

[CMake] Can't add empty directories when using CPack

2008-11-21 Thread Daniel Nelson
Is it possible to add empty directories with cpack? If my CMakeLists.txt file is: project(empty-dir) set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}) file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/foo/bar/baz) install(DIRECTORY ${CMAKE_BINARY_DIR}/foo DESTINATION cpack-test) install(FILES CMakeLists.txt

Re: [CMake] Finding Boost 1.37 with Cmake 2.6.2 on windows

2008-11-21 Thread Andreas Pakulat
On 21.11.08 14:16:04, Gerrick Bivins wrote: > I'm trying to use CMake to build one of my utilities and I'm having > problems finding Boost (1.37). > #include(FindBoost) This is wrong. > find_package(Boost COMPONENTS iostreams filesystem regex system > date_time REQUIRED) This one needs a s

[CMake] Finding Boost 1.37 with Cmake 2.6.2 on windows

2008-11-21 Thread Gerrick Bivins
Hello, I'm trying to use CMake to build one of my utilities and I'm having problems finding Boost (1.37). I have a top-level CMakeList.txt file as follows: = ##Top level build for myUtilTest cmake_minimum_required(VERSION 2.6) project (myUtilTest CXX)

Re: [CMake] reading a variable causes a segfault

2008-11-21 Thread Bill Hoffman
Pablo Yanez Trujillo wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I'm using (on a Gentoo/Linux) box cmake version 2.4-patch 6 and I think I've found a bug in cmake. Can you try this with 2.6.2 or at least 2.4.8. 2.4.6 is pretty old, and the bug may have been fixed. Also, if y

[CMake] reading a variable causes a segfault

2008-11-21 Thread Pablo Yanez Trujillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I'm using (on a Gentoo/Linux) box cmake version 2.4-patch 6 and I think I've found a bug in cmake. I am writting a MACRO that creates targets (with ADD_LIBRARY) depending on values of the first paremeter and predefined variables. The idea is to

Re: [CMake] Adding install dependency to test-target?

2008-11-21 Thread Jan Wurster
Hi Hugo, > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Hugo Heden > Sent: Thursday, November 20, 2008 10:51 AM > Is there any way that I can add 'install' dependency to the 'test'- > target? Maybe it isn't relevant to your specific needs - but I

[CMake] Patch for CTest bug

2008-11-21 Thread Ian Scott
CTest strips any XML measurement tags out of the test output before passing on the results to the dashboard. Unfortunately it also strips out any normal test text between the measurements. This can make it impossible to remotely diagnose the fault. I have a fix to just remove the measurements,