Revert CMake default build type error (#1420)

This commit is contained in:
Marko Barišić 2023-10-27 08:58:37 +02:00 committed by GitHub
parent e9f3a5fd1b
commit a94588bde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,10 +239,6 @@ else()
endif()
# -----------------------------------------------------------------------------
if (DEFINED CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE)
message(FATAL_ERROR "CMake build type was set as empty, most likely a mistake")
endif()
# default build type is debug
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")