diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-15 13:34:44 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-06-15 13:34:44 +0200 |
commit | 078bc6fe3fc764eaa2d528a19fe6d40972ee3537 (patch) | |
tree | 7d276934ee4aa3fd526985252d5d23275692f4ed /cmake/macros/ConfigureBaseTargets.cmake | |
parent | a3db80ce5824babcd174be39836e4f82b2533395 (diff) |
Build: Unify setting _BUILD_DIRECTIVE preprocessor macro for all compilers
Diffstat (limited to 'cmake/macros/ConfigureBaseTargets.cmake')
-rw-r--r-- | cmake/macros/ConfigureBaseTargets.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/macros/ConfigureBaseTargets.cmake b/cmake/macros/ConfigureBaseTargets.cmake index b9bcaffd7d2..34ed3170044 100644 --- a/cmake/macros/ConfigureBaseTargets.cmake +++ b/cmake/macros/ConfigureBaseTargets.cmake @@ -15,6 +15,11 @@ add_library(trinity-compile-option-interface INTERFACE) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD 20) +# Set build-directive (used in core to tell which buildtype we used) +target_compile_definitions(trinity-compile-option-interface + INTERFACE + -D_BUILD_DIRECTIVE="$<CONFIG>") + # An interface library to make the target features available to other targets add_library(trinity-feature-interface INTERFACE) |