File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,20 @@ set(xoreos-tools_VERSION 0.0.6)
28
28
option (Boost_USE_STATIC_LIBS "Use Boost static libraries" OFF )
29
29
30
30
31
+ # -------------------------------------------------------------------------
32
+ # default build type
33
+
34
+ set (default_build_type "Debug" )
35
+ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
36
+ message (STATUS "Setting build type to '${default_build_type} ' as none was specified." )
37
+ set (CMAKE_BUILD_TYPE "${default_build_type} " CACHE
38
+ STRING "Choose the type of build." FORCE )
39
+ # Set the possible values of build type for cmake-gui
40
+ set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
41
+ "Debug" "Release" "MinSizeRel" "RelWithDebInfo" )
42
+ endif ()
43
+
44
+
31
45
# -------------------------------------------------------------------------
32
46
# load some cmake modules from cmake/ subfolder
33
47
list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake )
You can’t perform that action at this time.
0 commit comments