You may also need to use FORCE: > > if(NOT CMAKE_BUILD_TYPE) > set(CMAKE_BUILD_TYPE "Release" CACHE STRING > "Choose the type of build, options are: Debug Release > RelWithDebInfo MinSizeRel." > FORCE) > endif(NOT CMAKE_BUILD_TYPE) > > James > _______________________________________________ >
Great, that did it (it did require using FORCE). I don't understand why <docstring> is required? Why can you not leave that string alone and simply change the value of <variable>? Thanks, David
_______________________________________________ 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
