Avoid warning because /MT overrides /MD flag

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Dominik Schmidt 2018-10-29 08:29:04 -07:00 committed by Michael Schuster
parent e4b53b12e1
commit 13d4b91935
No known key found for this signature in database
GPG key ID: 00819E3BF4177B28
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,8 @@
# Use static runtime for all subdirectories
foreach(buildType "" "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
string(REPLACE "/MD" "/MT" "CMAKE_CXX_FLAGS${buildType}" "${CMAKE_CXX_FLAGS${buildType}}")
endforeach()
add_subdirectory(OCContextMenu) add_subdirectory(OCContextMenu)
add_subdirectory(OCOverlays) add_subdirectory(OCOverlays)
add_subdirectory(OCUtil) add_subdirectory(OCUtil)

View file

@ -8,11 +8,6 @@ add_library(OCUtil STATIC
OCUtil.rc OCUtil.rc
) )
target_compile_options(OCUtil
PUBLIC
"/MT$<$<CONFIG:Debug>:d>"
)
target_include_directories(OCUtil target_include_directories(OCUtil
PUBLIC PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}"