Skip to content

Commit c7151ee

Browse files
committed
Merge branch 'main' into autobuild
2 parents b155545 + ee6465a commit c7151ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ if(WIN32)
121121
target_compile_definitions(EntropyCore PUBLIC WIN32_LEAN_AND_MEAN EntropyWindows)
122122
if(MSVC)
123123
target_compile_options(EntropyCore PRIVATE /W4)
124+
# Use static runtime library to match vcpkg dependencies
125+
set_property(TARGET EntropyCore PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
126+
set_property(TARGET WorkContractExample PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
127+
set_property(TARGET WorkGraphYieldableExample PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
124128
endif()
125129
else()
126130
# Settings for non-Windows platforms (macOS, Linux)

0 commit comments

Comments
 (0)