win-capture: Use static runtimes for hooks/helpers

(Note: This commit also modifies the ipc-util/seg-service modules)

When compiling the final project, always compile
ipc-util/get-graphics-offsets/graphics-hook/inject-helper/seg-service
with static MSVC runtimes to prevent the need of requiring the MSVC
runtimes for both architectures.
This commit is contained in:
jp9000
2016-11-23 05:55:25 -08:00
parent e438347237
commit 2f305cb550
5 changed files with 20 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ set(graphics-hook_SOURCES
d3d11-capture.cpp
d3d12-capture.cpp)
if(MSVC)
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
endif()
add_library(graphics-hook MODULE
${graphics-hook_SOURCES}
${graphics-hook_HEADERS})