From af413e37bbac2046d3c79ef92bd4a823a14fbd65 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 26 Aug 2021 10:38:42 +0200 Subject: [PATCH] Deps: Change empty CMAKE_BUILD_TYPE to Release on single config generators --- deps/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 3ce6b88a9..bc98e0b83 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -57,6 +57,11 @@ set(PATCH_CMD ${GIT_EXECUTABLE} apply --verbose --ignore-space-change --whitespa get_property(_is_multi GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if (NOT _is_multi AND NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) + message(STATUS "Forcing CMAKE_BUILD_TYPE to Release as it was not specified.") +endif () + function(prusaslicer_add_cmake_project projectname) cmake_parse_arguments(P_ARGS "" "INSTALL_DIR;BUILD_COMMAND;INSTALL_COMMAND" "CMAKE_ARGS" ${ARGN})