Verified Commit 6d1b8412 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Change to default build type if CMAKE_BUILD_TYPE is unknown

parent b2de92b3
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 ()