From 1bd04fe36fddf9a0b6b1eb9ae54739bc8fde41c1 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Wed, 4 Dec 2024 22:44:38 -0800 Subject: [PATCH] use a default for optimizations --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a6c4b23..7e430458 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,10 @@ if("${CMAKE_SOURCE_DIR}" MATCHES " ") message(FATAL_ERROR "The server cannot build in the path (" ${CMAKE_SOURCE_DIR} ") because it contains a space. Please move the server to a path without spaces.") endif() +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "The default build type" FORCE) +endif() + include(CTest) set(CMAKE_C_STANDARD 99)