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

2007-06-12 Thread Hendrik Sattler
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 an

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

2007-06-12 Thread David Cole
Use "pairs of values", where you provide a named value that CMake does not know anything about... Then use that value to force the cache value of the variable that CMake does know about... As in: PROJECT(whatever CXX) SET(MY_CMAKE_BUILD_TYPE "Debug" CACHE STRING "User settable value always force

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

2007-06-12 Thread Vitor Vasconcelos Araujo Silva
Have a look here at the _SET_FANCY macro: http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake?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