aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/ConfigureBaseTargets.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/macros/ConfigureBaseTargets.cmake')
-rw-r--r--cmake/macros/ConfigureBaseTargets.cmake5
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)