aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 247de78..c66e94d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -249,24 +249,24 @@ target_use_windows_subsystem(30-game)
option(BRUSSEL_ENABLE_PROFILING "Whether profiling support is enabled or not." OFF)
if(BRUSSEL_ENABLE_PROFILING)
- target_compile_definitions(30-game
- PRIVATE
+ target_compile_definitions(10-common
+ PUBLIC
TRACY_ENABLE
)
endif()
-option(BRUSSEL_ENABLE_DEV_ENC "Enable dev environment features or not." ON)
-if(BRUSSEL_ENABLE_DEV_ENC)
- target_compile_definitions(30-game
- PRIVATE
+option(BRUSSEL_ENABLE_DEV_ENV "Enable dev environment features or not." ON)
+if(BRUSSEL_ENABLE_DEV_ENV)
+ target_compile_definitions(10-common
+ PUBLIC
BRUSSEL_DEV_ENV=1
)
endif()
option(BRUSSEL_ENABLE_EDITOR "Enable editor support or not." ON)
if(BRUSSEL_ENABLE_EDITOR)
- target_compile_definitions(30-game
- PRIVATE
+ target_compile_definitions(10-common
+ PUBLIC
BRUSSEL_ENABLE_EDITOR=1
)
endif()
@@ -275,12 +275,12 @@ option(BRUSSEL_ENABLE_ASAN "Enable AddressSanitizer or not." OFF)
if(BRUSSEL_ENABLE_ASAN)
# Shared to all downstream targets
target_compile_options(10-common
- INTERFACE
+ PUBLIC
-fsanitize=address
-fno-omit-frame-pointer
)
target_link_options(10-common
- INTERFACE
+ PUBLIC
-fsanitize=address
-fno-omit-frame-pointer
)