2009/2/28 Aaron Turner synfina...@gmail.com:
So is there a clean way to pass the current Cmake config variables to
a new cmake process via execute_process()? Or do I need to create a
template file and use configure_file() to do that? Basically, your
above example doesn't work for me because
Hi all,
as part of our internal software build system, we make heavy use of
pkg-config .pc files, and found very useful to parametrize compile options
and paths using pkg-config's --define-variable command line option (e.g.:
use a build chroot or not).
So far, I've been unable to find a
Hello, is there any elegant way to add -DDEBUG to the complier flag
just in command line?
I don't want to modify my CMakeLists.txt file, I just want to build it when
I run :
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ..
I tried the following command in CMakeLists.txt:
Enrico Franchi wrote:
On Feb 28, 2009, at 10:48 AM, Kermit Mei wrote:
Hello, is there any elegant way to add -DDEBUG to the complier flag
just in command line?
IF(${CMAKE_BUILD_TYPE} STREQUAL Debug)
MESSAGE(Adding Debug flag...)
ADD_DEFINITIONS(-DDEBUG)
ENDIF(${CMAKE_BUILD_TYPE} STREQUAL
Enrico Franchi wrote:
On Feb 28, 2009, at 10:48 AM, Kermit Mei wrote:
Hello, is there any elegant way to add -DDEBUG to the complier flag
just in command line?
IF(${CMAKE_BUILD_TYPE} STREQUAL Debug)
MESSAGE(Adding Debug flag...)
ADD_DEFINITIONS(-DDEBUG)
I am writing an article for the Kitware Source
(http://www.kitware.com/products/thesource.html ) about how CMake aides
in innovation and collaboration. If you have stories about how CMake
has helped your project/research achieve its goals, I would be
interested to hear them.
Thanks in