diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-15 13:34:44 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-06-20 01:20:31 +0200 |
commit | b7c0028bf5672aec2dad6146c986e4efb48fddb3 (patch) | |
tree | 5fe8d17888d262da94d81ee5b409600a56116463 /cmake/macros | |
parent | 6d0a9fc0a6b23a14505a9ee832ae4c590bd076f9 (diff) |
Build: Unify setting _BUILD_DIRECTIVE preprocessor macro for all compilers
(cherry picked from commit 078bc6fe3fc764eaa2d528a19fe6d40972ee3537)
Diffstat (limited to 'cmake/macros')
-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) |