mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 20:56:00 +08:00
Use 'Release' as default when build type is not specified.
Otherwise, "cmake /path/to/eigen/" in an empty build directory, as specified on the CMake page on the wiki, yields a fatal error.
This commit is contained in:
parent
bfd46eacad
commit
dbdf7ee942
@ -88,6 +88,9 @@ elseif(cmake_build_type_tolower STREQUAL "release")
|
|||||||
set(CMAKE_BUILD_TYPE "Release")
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
elseif(cmake_build_type_tolower STREQUAL "relwithdebinfo")
|
elseif(cmake_build_type_tolower STREQUAL "relwithdebinfo")
|
||||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
||||||
|
elseif(cmake_build_type_tolower STREQUAL "")
|
||||||
|
# Use 'Release' as default when build type is not specified
|
||||||
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unknown build type ${CMAKE_BUILD_TYPE}")
|
message(FATAL_ERROR "Unknown build type ${CMAKE_BUILD_TYPE}")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user