set possible build types in cmake build system

This commit is contained in:
Wenzel Jakob 2016-09-17 12:58:18 +02:00
parent b3794f1087
commit 7962f30d70
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting tests build type to MinSizeRel as none was specified")
set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build" FORCE)
set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build." FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
"MinSizeRel" "RelWithDebInfo")
endif()
set(PYBIND11_TEST_FILES