equal
deleted
inserted
replaced
68 |
68 |
69 #when build type is not specified, assume Debug/Release according to build version information |
69 #when build type is not specified, assume Debug/Release according to build version information |
70 if(CMAKE_BUILD_TYPE) |
70 if(CMAKE_BUILD_TYPE) |
71 string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) |
71 string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) |
72 if(NOT((CMAKE_BUILD_TYPE MATCHES "RELEASE") OR |
72 if(NOT((CMAKE_BUILD_TYPE MATCHES "RELEASE") OR |
73 (CMAKE_BUILD_TYPE MATCHES "DEBUG"))) |
73 (CMAKE_BUILD_TYPE MATCHES "DEBUG") OR |
74 set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release)" FORCE) |
74 (CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO"))) |
75 message(STATUS "Unknown build type, using default (${default_build_type})") |
75 set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release/RelWithDebInfo)" FORCE) |
|
76 message(STATUS "Unknown build type ${CMAKE_BUILD_TYPE}, using default (${default_build_type})") |
76 endif() |
77 endif() |
77 else(CMAKE_BUILD_TYPE) |
78 else(CMAKE_BUILD_TYPE) |
78 set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release)" FORCE) |
79 set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release/RelWithDebInfo)" FORCE) |
79 endif(CMAKE_BUILD_TYPE) |
80 endif(CMAKE_BUILD_TYPE) |
80 |
81 |
81 |
82 |
82 #perform safe check that enable/disable compilation features |
83 #perform safe check that enable/disable compilation features |
83 include(${CMAKE_MODULE_PATH}/compilerchecks.cmake) |
84 include(${CMAKE_MODULE_PATH}/compilerchecks.cmake) |