Re: [CMake] Relocatable RPM

2010-08-18 Thread Eric Noulard
2010/8/17 Rolf Eike Beer e...@sf-mail.de: Am Tuesday 17 August 2010 schrieb Eric Noulard: set(CPACK_RPM_PACKAGE_RELOCATABLE TRUE) and CPackRPM will try to build a relocatable package. This will surely FAIL if:      - some file are installed with absolute path Do you mean the packaging

Re: [CMake] Changes from 2.4.8 to 2.6.4

2010-08-18 Thread Eric Noulard
2010/8/17 Orion Poplawski or...@cora.nwra.com: On 08/17/2010 02:58 PM, Alexander Neundorf wrote: Hi, On Tuesday 17 August 2010, Orion Poplawski wrote: I'm contemplating updating the version of cmake in EPEL[1] 5 from 2.4.8 to 2.6.4 Why not go directly to 2.8.2 ? I think there are no

[CMake] Tell find_package to look only for 32bit libs (or specify the exact location)

2010-08-18 Thread Nils
Hi I have to build my program 32bit on my Mac running OSX 10.6. I use find_package to find gtest, however it always finds the 64bit lib installed in /usr/local instead of the 32bit lib installed in $HOME/Develop/gtest32 even if I adjust the path later in cmake-gui! So now my questions. 1. Is

Re: [CMake] Tell find_package to look only for 32bit libs (or specify the exact location)

2010-08-18 Thread C. Meissa
Hi, Am Mittwoch, 18. August 2010 schrieb Nils: 1. Is there a way to tell find_package to only look for 32bit libs? 2. Is there a way to tell find_package to look only in a specific path? Findpackage is just a normal cmake script running find_library. So you could copy FindGtest.cmake to your

Re: [CMake] Tell find_package to look only for 32bit libs (or specify the exact location)

2010-08-18 Thread Michael Wild
On 18. Aug, 2010, at 9:49 , Nils wrote: Hi I have to build my program 32bit on my Mac running OSX 10.6. I use find_package to find gtest, however it always finds the 64bit lib installed in /usr/local instead of the 32bit lib installed in $HOME/Develop/gtest32 even if I adjust the path

Re: [CMake] CTest fails to find test command : bug in use of FileExists() + suggested fix.

2010-08-18 Thread Michael Hertling
On 08/14/2010 11:59 PM, Richard Offer wrote: One of my test cases needs sudo to run (its listening on privileged ports). If I add ADD_TEST( SERVER /usr/bin/sudo ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Server${SUFFIX} --daemon ) CMake complains that it can¹t find sudo. [ d042 ] make

[CMake] Build logging

2010-08-18 Thread Johny
Hey, I am using a Ctest script to do a continuous build, however I can't seem to find a way to log the output of my make system since when you give ctest_build(BUILD src) it is automatically logged to the build.xml in the Testing directory. Is there anyway i can log the output of the

Re: [CMake] Changes from 2.4.8 to 2.6.4

2010-08-18 Thread Orion Poplawski
On 8/18/2010 1:40 AM, Eric Noulard wrote: 2010/8/17 Orion Poplawskior...@cora.nwra.com: On 08/17/2010 02:58 PM, Alexander Neundorf wrote: Hi, On Tuesday 17 August 2010, Orion Poplawski wrote: I'm contemplating updating the version of cmake in EPEL[1] 5 from 2.4.8 to 2.6.4 Why not go

Re: [CMake] Build logging

2010-08-18 Thread Tyler Roscoe
On Wed, Aug 18, 2010 at 11:53:14AM +0200, Johny wrote: I am using a Ctest script to do a continuous build, however I can't seem to find a way to log the output of my make system since when you give ctest_build(BUILD src) it is automatically logged to the build.xml in the Testing

Re: [CMake] Build logging

2010-08-18 Thread David Cole
Somewhat equivalent to -VV redirected to a log file is: -O file, --output-log file = Output to log file (from ctest --help ...) HTH, David On Wed, Aug 18, 2010 at 12:09 PM, Tyler Roscoe ty...@cryptio.net wrote: On Wed, Aug 18, 2010 at 11:53:14AM +0200, Johny

Re: [CMake] Mixing optional and required libraries with find_package

2010-08-18 Thread Michael Hertling
On 08/09/2010 02:55 PM, storri wrote: I don't think it is possible to find both required and optional libraries with the same find_package command. Is that true? At http://www.mail-archive.com/cmake@cmake.org/msg28536.html, you will find some considerations w.r.t. requesting required and

[CMake] Setting CMAKE_CXX_FLAGS..., CMAKE_C_FLAGS... and CMAKE_C_STANDARD_LIBRARIES_INIT and friends on a per target basis

2010-08-18 Thread Brian Davis
CMAKE_CXX_FLAGS..., CMAKE_C_FLAGS... and CMAKE_C_STANDARD_LIBRARIES_INIT and friends are seemingly global variables. Is there a way to override (all of) these on a per target basis? A method which is not tied to the directory (properties). One that does not simply append such as COMPILE_FLAGS,