Re: [CMake] Moving large MSVS projects to CUDA

2012-05-04 Thread James Bigler
On Fri, May 4, 2012 at 12:39 PM, Ming wrote: > Hello CMake community, > > I have experience using CMake to generate sime cuda-enabled executables > (where the cpp’s reside in one folder, etc.). > I am attempting to move a large project that utilizes CMake, from just c++ > to CUDA enabled c++. >

[CMake] automatable way to specify parallel --builds

2012-05-04 Thread Dave Abrahams
I am driving invocations of cmake with another tool, and I would like to pass the equivalent of -jN for the "cmake --build" step, but I don't seem to be about to find out what generator will be used, which makes it hard to even write code to generate the right command line options. Can anyone hel

[CMake] relocatable build directory: howto?

2012-05-04 Thread Dave Abrahams
I need to preserve the built-but-not-yet-installed state of some projects, and the tool I'm driving CMake with moves the result of every build step from a read-write build directory into a readonly cache. The result is that the generated cmake_install.cmake files no longer work, because they are

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

2012-05-04 Thread Tim Gallagher
Put an: if(CMAKE_BUILD_TYPE STREQUAL "Debug") endif() guard around the set_property call. Tim - Original Message - From: "Robert Dailey" To: "CMake ML" Sent: Friday, May 4, 2012 4:16:47 PM Subject: [CMake] Setting COMPILE_FLAGS property on a target in only debug? I'm doing

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-04 Thread Eric Noulard
2012/5/4 Ming : > Hello CMake community, > > I have experience using CMake to generate sime cuda-enabled executables > (where the cpp’s reside in one folder, etc.). > I am attempting to move a large project that utilizes CMake, from just c++ > to CUDA enabled c++. > > It is a project that generates

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

2012-05-04 Thread Robert Dailey
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 set this compiler flag for debug builds, not release. How can I do this? -- Powered by www.kitware.com Visit other Kitware op

[CMake] Moving large MSVS projects to CUDA

2012-05-04 Thread Ming
Hello CMake community, I have experience using CMake to generate sime cuda-enabled executables (where the cpp’s reside in one folder, etc.). I am attempting to move a large project that utilizes CMake, from just c++ to CUDA enabled c++. It is a project that generates a large set of libraries

[CMake] Controlling Doxygen using CMake

2012-05-04 Thread Robert Dailey
This is more or less a design question. I use CMake to generate visual studio projects for a collection of 3 subsystems (components). Each subsystem has any number of separate projects (DLLs, Executables, etc). Each subsystem defines its own doxygen configuration file which is used to generate tagf