From a0ddfdbcbc6336685362343518770f7bdefd10fe Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 25 Nov 2022 17:06:58 -0800 Subject: Changeset: 91 Basic logging infrastructure --- CMakeLists.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'CMakeLists.txt') 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 ) -- cgit v1.2.3-70-g09d2