mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 13:24:28 +08:00
restore the behavior of defaulting to Release build type
This commit is contained in:
parent
1f6bd2915d
commit
bf0cffa897
@ -10,12 +10,15 @@ endif()
|
|||||||
|
|
||||||
# guard against bad build-type strings
|
# guard against bad build-type strings
|
||||||
|
|
||||||
|
if (NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
|
endif()
|
||||||
|
|
||||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_tolower)
|
string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_tolower)
|
||||||
if( NOT cmake_build_type_tolower STREQUAL "debug"
|
if( NOT cmake_build_type_tolower STREQUAL "debug"
|
||||||
AND NOT cmake_build_type_tolower STREQUAL "release"
|
AND NOT cmake_build_type_tolower STREQUAL "release"
|
||||||
AND NOT cmake_build_type_tolower STREQUAL "relwithdebinfo"
|
AND NOT cmake_build_type_tolower STREQUAL "relwithdebinfo")
|
||||||
AND NOT cmake_build_type_tolower STREQUAL "")
|
message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo (case-insensitive).")
|
||||||
message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are Debug, Release, RelWithDebInfo and \"\" (case-insensitive).")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user