From 9277870fa2b62aa7984a9a95f9bfe8d94c9268f5 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Sat, 5 Nov 2022 03:11:36 +0000 Subject: [PATCH] Merge branch 'cmake-develop-flag' into 'next' cmake: Add SRB2_CONFIG_DEV_BUILD See merge request STJr/SRB2!1837 (cherry picked from commit 896a7609a77247a09eb93815a335dad5c85d0431) 518cb0b3 cmake: Add SRB2_CONFIG_DEV_BUILD --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ae93aac37..95689a2d1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,6 +37,8 @@ set(SRB2_CONFIG_YASM OFF CACHE BOOL "Use YASM in place of NASM.") set(SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL "Use statically linked OpenGL. NOT RECOMMENDED.") +set(SRB2_CONFIG_DEV_BUILD OFF CACHE BOOL + "Compile a development build of SRB2.") ### use internal libraries? if(${CMAKE_SYSTEM} MATCHES "Windows") ###set on Windows only @@ -255,6 +257,10 @@ endif() set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wno-trigraphs) +if(${SRB2_CONFIG_DEV_BUILD}) + target_compile_definitions(SRB2SDL2 PRIVATE -DDEVELOP) +endif() + target_compile_definitions(SRB2SDL2 PRIVATE -DCMAKECONFIG) #add_library(SRB2Core STATIC