diff options
| author | Shauren <shauren.trinity@gmail.com> | 2024-06-15 13:34:44 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-04-13 18:17:40 +0200 |
| commit | 857d0b2c273923c5a0236c5d36c80ab4a16fdb42 (patch) | |
| tree | e0a71b3a6b9f6a81e54d4f4d8a5bb697ff1597dd /cmake/macros | |
| parent | b7783c9cfbd00af624c0aee89f20242cd5f4ec1b (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) |
