[CMake] Restoring a variable.. but only once!

Hendrik Sattler post at hendrik-sattler.de
Tue Jun 12 17:06:13 EDT 2007


Am Dienstag 12 Juni 2007 17:25 schrieb Vitor Vasconcelos Araujo Silva:
> > Have a look here at the _SET_FANCY macro:
> > http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cm
> >ake?revision=668049&view=markup
> > http://www.cmake.org/mailman/listinfo/cmake
>
>     Hello Alex and all,
>
> 	I read it, but my case is a little bit different.
> 	I wish to define the CMAKE_BUILD_TYPE as the default type. But I don't
> want to use the FORCE rule, because my users may want to change it. My
> problem is: I'm only able to put the "Release" value in ccmake interface
> if I force it... I'm using Cmake 2.4 patch 3. Any tips?

That's even in the FAQ:
http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_change_the_default_build_mode_and_see_it_reflected_in_the_GUI.3F

HS


More information about the CMake mailing list