cmake: Make static VC runtime libraries consistent
Makes Visual C runtime libraries consistent across Debug/MinSizeRel/Release/RelWithDebInfo, rather than just changing those flags for RelWithDebInfo. Also adds /Zl for statically linked libraries. Closes obsproject/obs-studio#1421
This commit is contained in:
@@ -12,7 +12,7 @@ set(get-graphics-offsets_SOURCES
|
||||
d3d9-offsets.cpp)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT>)
|
||||
endif()
|
||||
|
||||
add_executable(get-graphics-offsets
|
||||
|
@@ -30,7 +30,7 @@ set(graphics-hook_SOURCES
|
||||
d3d12-capture.cpp)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options("$<IF:$<CONFIG:Debug>,/MTd,/MT>")
|
||||
endif()
|
||||
|
||||
add_library(graphics-hook MODULE
|
||||
|
@@ -10,7 +10,7 @@ set(inject-helper_SOURCES
|
||||
inject-helper.c)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT>)
|
||||
endif()
|
||||
|
||||
add_executable(inject-helper
|
||||
|
Reference in New Issue
Block a user