From 078bc6fe3fc764eaa2d528a19fe6d40972ee3537 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 15 Jun 2024 13:34:44 +0200 Subject: Build: Unify setting _BUILD_DIRECTIVE preprocessor macro for all compilers --- cmake/macros/ConfigureBaseTargets.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake/macros') 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="$") + # An interface library to make the target features available to other targets add_library(trinity-feature-interface INTERFACE) -- cgit v1.2.3