Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-08-26 11:38:42 +0300
committertamasmeszaros <meszaros.q@gmail.com>2021-08-26 11:39:46 +0300
commitaf413e37bbac2046d3c79ef92bd4a823a14fbd65 (patch)
tree0f0379d0a87cb66622b09545d3c60db29c1035d6 /deps
parentdfd946e7c9fea3cfaec147bf66e42a4278340314 (diff)
Deps: Change empty CMAKE_BUILD_TYPE to Release on single config generators
Diffstat (limited to 'deps')
-rw-r--r--deps/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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})