From 949f18e757408ddeaa9d5d624e11fb6b788ba0ed Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 31 May 2024 13:23:13 +0300 Subject: [PATCH] -Og optimizations level for Debug configuration (GCC and Clang) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b4e4bfd..8340b928 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,9 @@ else() -Wformat-nonliteral -Wcast-align -Wpointer-arith -Wundef -Wwrite-strings -Wno-unused-parameter) + if (CMAKE_BUILD_TYPE MATCHES "Debug") + target_compile_options(${PROJECT_NAME} PRIVATE -Og) + endif() endif() if(VOXELENGINE_BUILD_WINDOWS_VCPKG AND WIN32)