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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2017-08-19 00:18:27 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2017-08-19 00:18:27 +0300
commit81e2c6f2dbbd3fffff602360f78b392a583f5d2b (patch)
tree2a7fe8af230d24f182ddaa8df12681660e4d9c64 /CMakeLists.txt
parent9620596d59e6e5a355e47629a6c67ed3ee999c46 (diff)
CMake build system: Made the Release build default
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10ae7eca6..3a4d478fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,11 @@ cmake_minimum_required(VERSION 2.8)
project(Slic3r)
+if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
+ message(STATUS "No build type selected, default to Release")
+ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type (default Release)" FORCE)
+endif()
+
if (MSVC OR MINGW OR APPLE)
set(SLIC3R_STATIC_INITIAL 1)
else ()