Skip to content
Snippets Groups Projects
Commit 518cb0b3 authored by Eidolon's avatar Eidolon
Browse files

cmake: Add SRB2_CONFIG_DEV_BUILD

parent deaa82aa
No related branches found
No related tags found
1 merge request!1837cmake: Add SRB2_CONFIG_DEV_BUILD
...@@ -37,6 +37,8 @@ set(SRB2_CONFIG_YASM OFF CACHE BOOL ...@@ -37,6 +37,8 @@ set(SRB2_CONFIG_YASM OFF CACHE BOOL
"Use YASM in place of NASM.") "Use YASM in place of NASM.")
set(SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL set(SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL
"Use statically linked OpenGL. NOT RECOMMENDED.") "Use statically linked OpenGL. NOT RECOMMENDED.")
set(SRB2_CONFIG_DEV_BUILD OFF CACHE BOOL
"Compile a development build of SRB2.")
### use internal libraries? ### use internal libraries?
if(${CMAKE_SYSTEM} MATCHES "Windows") ###set on Windows only if(${CMAKE_SYSTEM} MATCHES "Windows") ###set on Windows only
...@@ -255,6 +257,10 @@ endif() ...@@ -255,6 +257,10 @@ endif()
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wno-trigraphs) 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) target_compile_definitions(SRB2SDL2 PRIVATE -DCMAKECONFIG)
#add_library(SRB2Core STATIC #add_library(SRB2Core STATIC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment