mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
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:
parent
118dbf9e67
commit
b3ef46d986
@ -32,7 +32,7 @@ set(updater_SOURCES
|
||||
|
||||
add_definitions(-DNOMINMAX -DUNICODE -D_UNICODE)
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT>)
|
||||
endif()
|
||||
|
||||
add_executable(updater WIN32
|
||||
|
2
deps/blake2/CMakeLists.txt
vendored
2
deps/blake2/CMakeLists.txt
vendored
@ -13,7 +13,7 @@ include_directories(
|
||||
|
||||
if(WIN32)
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT> /Zl)
|
||||
endif()
|
||||
add_definitions(
|
||||
-Dinline=_inline
|
||||
|
2
deps/ipc-util/CMakeLists.txt
vendored
2
deps/ipc-util/CMakeLists.txt
vendored
@ -23,7 +23,7 @@ else()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT> /Zl)
|
||||
endif()
|
||||
|
||||
add_library(ipc-util STATIC
|
||||
|
2
deps/lzma/CMakeLists.txt
vendored
2
deps/lzma/CMakeLists.txt
vendored
@ -30,7 +30,7 @@ add_definitions(
|
||||
|
||||
if(WIN32)
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT> /Zl)
|
||||
add_compile_options("/wd4244")
|
||||
add_compile_options("/wd4267")
|
||||
endif()
|
||||
|
@ -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
|
||||
|
@ -33,7 +33,7 @@ set(seg_service_SOURCES
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
add_compile_options($<IF:$<CONFIG:Debug>,/MTd,/MT>)
|
||||
endif()
|
||||
|
||||
add_executable(seg_service WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user