[CMake] Custom Build Type GCC on Linux
Nadir SOUALEM
nadir.soualem at irisa.fr
Tue Mar 24 04:33:57 EDT 2009
Clemens Arth wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
try to delete your CMakeCache.txt
$rm CMakeCache.txt
and reload cmake:
cmake -DCMAKE_BUILD_TYPE=Debug
To avoid these manipulations, try to do an Out Source build
--
Nadir SOUALEM
Ingénieur INRIA - Équipe SAGE
More information about the CMake
mailing list