From: Thomas Debesse Date: Sun, 19 Feb 2023 15:49:53 +0000 (+0100) Subject: cmake: force Release build if CMAKE_BUILD_TYPE is unset X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=89ddcffaae19260a86399c6b273a8af252920ac6;p=xonotic%2Fnetradiant.git cmake: force Release build if CMAKE_BUILD_TYPE is unset --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 794e2008..839813ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)