[CMake] Setting CMAKE_CXX_FLAGS_<> in CMakeLists.txt

David Cole david.cole at kitware.com
Mon Jun 25 07:21:26 EDT 2007


On 6/24/07, Michael Hammer <michael.hammer at tugraz.at> wrote:
>
> Do I have any (smart)
> possibility to debug those flags, resp. debug variables which aren't
> set in the cache? The point is, these variables have to be registered
> in some Makefile (or something similar) after the configure process ...
>

If you are using a makefile based system, simply inspect the files in the
build tree named "flags.make" which you should find in the various locations
where you have customized the flags... If you are using Visual Studio or
Xcode, you can typically find those flags in the properties dialogs of those
IDE systems. Right click on a project node in Visual Studio, for example,
and choose "Properties" -- then look for the "C/C++ > Command Line" entry.
All of your flags changes for a project should be represented in there.
Similarly for individual source files if you have overridden the
COMPILE_FLAGS for individual source files using SET_SOURCE_FILES_PROPERTIES.

HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070625/a09531b6/attachment.html


More information about the CMake mailing list