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:
jp9000
2018-09-12 07:49:13 -07:00
parent 118dbf9e67
commit b3ef46d986
8 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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()