Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Andreas Mohr
Hi, On Mon, May 07, 2012 at 07:27:53PM -0400, cmake-requ...@cmake.org wrote: > Date: Mon, 07 May 2012 23:51:03 +0200 > From: Stephen Kelly > Subject: Re: [CMake] Setting COMPILE_FLAGS property on a target in > onlydebug? > To: cmake@cmake.org > Message-ID: > Content-Type: text/plain; c

[CMake] Package installation conundrum

2012-05-07 Thread Dave Abrahams
Here's another one! Scenario: * I am running CMake under 0install to build and install libraries * Each library builds a package SomePackage for the library binaries and another package SomePackage-dev for the library headers (and import libraries on Windows) * The FindSomePackage.cmake fi

[CMake] building and running tests with one command

2012-05-07 Thread Leif Walsh
Hi, Is there a make, cmake, or ctest way to rebuild the dependencies of a test if needed, and then run the test? Suppose I have a bulit directory and I'm developing. I want to make edits, then run a command specifying one test to check, so that anything needed by that test gets rebuilt (if my ch

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread David Cole
On Mon, May 7, 2012 at 5:51 PM, Stephen Kelly wrote: > Andreas Mohr wrote: >> I'd like to add one more dimension to it: > > Thanks for the review. > >> I'd think that Debug/Release isn't all that matters - >> what discussions all too conveniently leave out (possibly even the KDE >> Wiki-side targe

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Stephen Kelly
Robert Dailey wrote: >> http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/3615 > > > This looks like an interesting discussion but seems like it would be a lot > of work to complete. You're really targetting this for 2.8.9? It's likely to be partly complete by 2.8.9, but I don't k

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Stephen Kelly
Andreas Mohr wrote: > I'd like to add one more dimension to it: Thanks for the review. > I'd think that Debug/Release isn't all that matters - > what discussions all too conveniently leave out (possibly even the KDE > Wiki-side target config discussion!) is platform-specific handling, > too (Win3

Re: [CMake] speeding up FIND_PACKAGE(Qt4 ...)

2012-05-07 Thread Rolf Eike Beer
Am Montag, 7. Mai 2012, 15:00:24 schrieb Miller Henry: > We have a cmake based project where cmake runtime is becoming a problem: > everytime a CMakeLists.txt changes the build takes an extra 40-50 seconds. > Our main CMakeLists.txt contains a lot of ADD_SUBDIRECTORY (and little > else). Most of

[CMake] speeding up FIND_PACKAGE(Qt4 ...)

2012-05-07 Thread Miller Henry
We have a cmake based project where cmake runtime is becoming a problem: everytime a CMakeLists.txt changes the build takes an extra 40-50 seconds. Our main CMakeLists.txt contains a lot of ADD_SUBDIRECTORY (and little else). Most of the subdirectories then call FIND_PACKAGE(Qt4) with variou

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Robert Dailey
On Mon, May 7, 2012 at 12:42 PM, Stephen Kelly wrote: > Robert Dailey wrote: > > > On Mon, May 7, 2012 at 10:37 AM, Robert Dailey > > wrote: > > > > I just tried your workaround and it does not work. It places everything > in > > my preprocessor definitions field, not actually on the command line

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Andreas Mohr
Hi, > Date: Mon, 7 May 2012 12:22:27 -0500 > From: Robert Dailey > Subject: Re: [CMake] Setting COMPILE_FLAGS property on a target in > onlydebug? > To: Michael Wild > Cc: cmake@cmake.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > On Mon, May 7, 2012 a

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread James Bigler
On Mon, May 7, 2012 at 11:41 AM, Ming wrote: >** > >> * -The code in question is the Geant4 (** >> http://geant4.web.cern.ch/geant4/support/download.shtml* >> *) toolkit, which uses CMake to handle its cross-platform >> configuration

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread John Drescher
> I’ve > had issues in the past trying to perform a configure command in CMake-gui > when the buidl directory already existed..? I do this all the time for years. No problems at all. John -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensourc

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Stephen Kelly
Robert Dailey wrote: > On Mon, May 7, 2012 at 10:37 AM, Robert Dailey > wrote: > >> On Sat, May 5, 2012 at 5:34 AM, Michael Wild >> wrote: >> >>> On 05/04/2012 10:16 PM, Robert Dailey wrote: >>> > I'm doing the following: >>> > >>> > set_property( TARGET ${target_name} APPEND_STRING PROPERTY >>>

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread Ming
-The code in question is the Geant4 (http://geant4.web.cern.ch/geant4/support/download.shtml) toolkit, which uses CMake to handle its cross-platform configurations. The end result of the toolkit is to compile a large set of libraries. -I’ve changed all of the source files from .cc to .cu,

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Robert Dailey
On Mon, May 7, 2012 at 10:37 AM, Robert Dailey wrote: > On Sat, May 5, 2012 at 5:34 AM, Michael Wild wrote: > >> On 05/04/2012 10:16 PM, Robert Dailey wrote: >> > I'm doing the following: >> > >> > set_property( TARGET ${target_name} APPEND_STRING PROPERTY >> > COMPILE_FLAGS "/ZI /Gy " >> > ) >>

[CMake] Increasing test timeout during valgrind runs

2012-05-07 Thread Leif Walsh
Hi, As should be expected, tests take a lot longer when run under valgrind. We'd like to keep a lower test timeout when running Test actions, but increase that timeout when running MemCheck actions. I have a CTestCustom.cmake and a DartConfig.cmake that seem like likely candidates. Anyone know

Re: [CMake] Setting COMPILE_FLAGS property on a target in only debug?

2012-05-07 Thread Robert Dailey
On Sat, May 5, 2012 at 5:34 AM, Michael Wild wrote: > On 05/04/2012 10:16 PM, Robert Dailey wrote: > > I'm doing the following: > > > > set_property( TARGET ${target_name} APPEND_STRING PROPERTY > > COMPILE_FLAGS "/ZI /Gy " > > ) > > > > However this applies to all configurations. I want to only

Re: [CMake] fixup_bundle() doesn't like libglut.3.dylib

2012-05-07 Thread David Cole
/usr/X11/lib/libglut.dylib should probably be considered a "system library" that is not included in your final bundle. Therefore, all users of your application will have to have the Mac OS X version of X installed and available in order to run your program. (Is that all Macs nowadays anyway...?)

[CMake] fixup_bundle() doesn't like libglut.3.dylib

2012-05-07 Thread Joe Ping-Lin Hsiao
Hi, I use CMake to create an installer for a Mac program which uses GLUT. The GLUT library that the program links against with is /usr/X11/lib/libglut.dylib. When I use fixup_bundle() to create an installer, I get the following error message: install_name_tool: changing install names or rpaths c

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-07 Thread James Bigler
On Sat, May 5, 2012 at 3:32 AM, Ming wrote: > *From: **James Bigler* * * > *Sent: Saturday, May 05, 2012 1:51 AM* > *To: **Ming* * * > *Cc: **cmake@cmake.org* * * > *Subject: Re: [CMake] Moving large MSVS projects to CUDA* > ** > *On Fri, May 4, 2012 at 12:39 PM, Ming wrote: > * > >> *Hello