I am trying to build a project in Release mode. By default it is built in debug mode. I am setting the variable CMAKE_BUILD_TYPE to \"Release\" in CMakeLi
CMAKE_BUILD_TYPE
CMakeLi
Use it as you do it but in the root cmake file add the following before the project keyword
SET(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "" FORCE) PROJECT(MY_PROJECT)#It's here just to show where you should add it.