Commit 24002873 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Merge branch...

Merge branch '2-cmake-fails-if-cmake_build_type-is-not-one-of-debug-release-minsizerel-and-relwithdebinfo' into 'main'

Resolve "CMake fails if `CMAKE_BUILD_TYPE` is not one of Debug, Release, MinSizeRel, and RelWithDebInfo"

Closes #2

See merge request !1
parents b2de92b3 6d1b8412
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -49,7 +49,11 @@ if (NOT is_multi_config)
                CACHE STRING "Choose the type of build." FORCE
                )
    elseif (NOT CMAKE_BUILD_TYPE IN_LIST allowed_build_types)
        message(FATAL_ERROR "Unknown build type: ${CMAKE_BUILD_TYPE}")
      message(WARNING "Unknown build type '${CMAKE_BUILD_TYPE}'. "
        "Defaulting to '${default_build_type}'")
      set(CMAKE_BUILD_TYPE "${default_build_type}"
        CACHE STRING "Choose the type of build." FORCE
        )
    endif ()
endif ()