]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
cmake: force Release build if CMAKE_BUILD_TYPE is unset
authorThomas Debesse <dev@illwieckz.net>
Sun, 19 Feb 2023 15:49:53 +0000 (16:49 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 19 Feb 2023 15:49:53 +0000 (16:49 +0100)
CMakeLists.txt

index 794e2008942a3302a9b7a69535220c60da2b2304..839813ea8733e22f05b75fde4b96ec0b3486ed07 100644 (file)
@@ -14,6 +14,10 @@ set(BUILTINS_PKGCONFIG_DIR "${BUILTINS_INSTALL_DIR}/lib/pkgconfig")
 option(BUILTIN_GTKGLEXT "Builtin GtkGLExt" OFF)
 option(BUILTIN_GTKTHEME_MOJAVE "Builtin Mojave GTK theme" OFF)
 
+if(NOT CMAKE_BUILD_TYPE)
+    set(CMAKE_BUILD_TYPE Release)
+endif()
+
 if (APPLE)
     set(BUILTIN_GTKGLEXT ON)
     set(BUILTIN_GTKTHEME_MOJAVE ON)