Verified Commit 1430d207 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Do not forcibly set CMAKE_BUILD_TYPE if unknown

parent 24002873
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -49,11 +49,7 @@ if (NOT is_multi_config)
                CACHE STRING "Choose the type of build." FORCE
                )
    elseif (NOT CMAKE_BUILD_TYPE IN_LIST allowed_build_types)
      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
        )
      message(WARNING "Unknown build type '${CMAKE_BUILD_TYPE}'.")
    endif ()
endif ()