diff --git a/LogMonitor/src/CMakeLists.txt b/LogMonitor/src/CMakeLists.txt index 35ca575..3066bc6 100644 --- a/LogMonitor/src/CMakeLists.txt +++ b/LogMonitor/src/CMakeLists.txt @@ -37,6 +37,11 @@ target_include_directories(LogMonitor PRIVATE target_link_libraries(LogMonitorLib PRIVATE nlohmann_json::nlohmann_json) target_link_libraries(LogMonitor PRIVATE LogMonitorLib nlohmann_json::nlohmann_json) +if(MSVC) + target_compile_options(LogMonitor PRIVATE /guard:cf) + target_link_options(LogMonitor PRIVATE /guard:cf) +endif() + # Set output path — use $ so Release/Debug binaries go into separate subdirectories, # matching the pipeline's $(buildConfiguration) layout. set_target_properties(LogMonitor PROPERTIES diff --git a/LogMonitor/src/LogMonitor/LogMonitor.vcxproj b/LogMonitor/src/LogMonitor/LogMonitor.vcxproj index 5976a44..a1dae0f 100644 --- a/LogMonitor/src/LogMonitor/LogMonitor.vcxproj +++ b/LogMonitor/src/LogMonitor/LogMonitor.vcxproj @@ -125,12 +125,14 @@ true true true + Guard WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true pch.h Console + Guard true true true @@ -144,6 +146,7 @@ true true true + Guard NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true pch.h @@ -151,6 +154,7 @@ Console + Guard true true true