[CMake] Custom Build Type GCC on Linux
Clemens Arth
clemens.arth at gmx.at
Mon Mar 23 13:52:38 EDT 2009
Hi,
I got a rather simple question. To add some special optimization flags
to a custom build for one of our projects, I followed the guide to add a
custom build type to my project using the example found here:
http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_extend_the_build_modes_with_a_custom_made_one_.3F
I simply copy-pasted the code found there into a separate file and did
the following:
project(Dummy)
include(maintainermode.cmake)
add_library(dummylib dummy.cpp)
To build it I run:
>>cmake -DCMAKE_BUILD_TYPE=Maintainer ..
and
>>make
Although everything seems to be correct, I can't get the stuff compiled
with the new mode - it definitely adds the configuration, but I simply
cannot build it like Release or Debug. It always sticks back to Debug.
Did I miss something here?
Regards
Clemens
More information about the CMake
mailing list