On 8 January 2012 15:21, Renato Utsch <renatout...@gmail.com> wrote: > Yes, but I want to be able to change with CMake, but if I can't do > that, at least I want to be able to set the default to the Release > version :X
You have to understand there is difference between generators like makefiles and generators for projects for IDEs which allow to switch between build configurations from within IDE, like Visual Studio does. IMHO, CMAKE_BUILD_TYPE is irrelevant for IDEs like Visual Studio and valid workflow is equivalent to this: cmake -G "Visual Studio 2010" msbuild myproj.sln /p:Configuration=Debug or load myproj.sln in VS IDE and change configuration there. Obviously, for makefiles, CMAKE_BUILD_TYPE is the way to go. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- 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