Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions LogMonitor/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<CONFIG> so Release/Debug binaries go into separate subdirectories,
# matching the pipeline's $(buildConfiguration) layout.
set_target_properties(LogMonitor PROPERTIES
Expand Down
4 changes: 4 additions & 0 deletions LogMonitor/src/LogMonitor/LogMonitor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,14 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<ControlFlowGuard>Guard</ControlFlowGuard>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<ControlFlowGuard>Guard</ControlFlowGuard>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -144,13 +146,15 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<ControlFlowGuard>Guard</ControlFlowGuard>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<ControlFlowGuard>Guard</ControlFlowGuard>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand Down
Loading