Set CMAKE_BUILD_TYPE only for single-config generators

pull/2839/head
Moritz Heinemann 2 years ago
parent 2ee8bac78e
commit 1b94919c06

@ -18,7 +18,7 @@ include(GNUInstallDirs)
# ---------------------------------------------------------------------------------------
# Set default build to release
# ---------------------------------------------------------------------------------------
if(NOT CMAKE_BUILD_TYPE)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE)
endif()

Loading…
Cancel
Save