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/compiler/msvc/settings.cmake | |
parent | a3db80ce5824babcd174be39836e4f82b2533395 (diff) |
Build: Unify setting _BUILD_DIRECTIVE preprocessor macro for all compilers
Diffstat (limited to 'cmake/compiler/msvc/settings.cmake')
-rw-r--r-- | cmake/compiler/msvc/settings.cmake | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index 2611cdc65e1..4858aa242e6 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -59,23 +59,13 @@ else() message(STATUS "MSVC: Disabled Safe Exception Handlers for debug builds") endif() -# Set build-directive (used in core to tell which buildtype we used) # msbuild/devenv don't set CMAKE_MAKE_PROGRAM, you can choose build type from a dropdown after generating projects if("${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild") - target_compile_definitions(trinity-compile-option-interface - INTERFACE - -D_BUILD_DIRECTIVE="$(ConfigurationName)") - # multithreaded compiling on VS target_compile_options(trinity-compile-option-interface INTERFACE /MP) else() - # while all make-like generators do (nmake, ninja) - target_compile_definitions(trinity-compile-option-interface - INTERFACE - -D_BUILD_DIRECTIVE="$<CONFIG>") - # Forces writes to the PDB file to be serialized through mspdbsrv.exe (/FS) # Enable faster PDB generation in parallel builds by minimizing RPC calls to mspdbsrv.exe (/Zf) target_compile_options(trinity-compile-option-interface |