Re: [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 Verweij, Arjen
Hi Brian, We override the standard CMAKE__FLAGS (C CXX Fortran) and use it as a baseline. Then, for individual source files it is possible to override them in a separate file using: set_source_files_properties(${CMAKE_BINARY_DIR}/path/to/file.f PROPERTIES GENERATED TRUE COMPILE_FLAGS "${FFLAG_

[CMake] PDBs patch for VS2010 generator

2010-08-18 Thread Robert Goulet
Hello the world, I would like to submit the following changes to the cmake repository until someone finds a better solution. This fix an issue with the Visual Studio 2010 generator: When none of the options /Z7, /Zi and /ZI are specified in the cmake project settings, the project will open in

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

[CMake] Example using ExternalProject for configure+make and/or Win32?

2010-08-18 Thread Clifford Yapp
I've got a library (well, several actually) that I need to build with ExternalProject, but are already included in the source tree. I need to configure and build them with ExternalProject (it's either that or write CMake based builds for them, which would be a LOT of work) and I'll potentially ne

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 , you will find some considerations w.r.t. requesting required and opt

Re: [CMake] Build logging

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

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 direc

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 Poplawski: 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 thin

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

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

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 pat

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 you

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

Re: [CMake] Changes from 2.4.8 to 2.6.4

2010-08-18 Thread Eric Noulard
2010/8/17 Orion Poplawski : > 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 ar