diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-10-29 18:29:04 +0300 |
---|---|---|
committer | Dominik Schmidt <domme@tomahawk-player.org> | 2018-10-29 20:29:46 +0300 |
commit | afa21f89e758b992411299317b6bf5ba02e97e21 (patch) | |
tree | 7d9d0866a29e882d07b0a742f7a23bff093689ef /shell_integration | |
parent | ba65eefed7f6307ade8dff0a6b963ba1ee52cf25 (diff) |
Avoid warning because /MT overrides /MD flag
Diffstat (limited to 'shell_integration')
-rw-r--r-- | shell_integration/windows/CMakeLists.txt | 5 | ||||
-rw-r--r-- | shell_integration/windows/OCUtil/CMakeLists.txt | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/shell_integration/windows/CMakeLists.txt b/shell_integration/windows/CMakeLists.txt index b9c080b6e..2c004fd67 100644 --- a/shell_integration/windows/CMakeLists.txt +++ b/shell_integration/windows/CMakeLists.txt @@ -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(OCOverlays) add_subdirectory(OCUtil) diff --git a/shell_integration/windows/OCUtil/CMakeLists.txt b/shell_integration/windows/OCUtil/CMakeLists.txt index eabb4c4a5..d353422f4 100644 --- a/shell_integration/windows/OCUtil/CMakeLists.txt +++ b/shell_integration/windows/OCUtil/CMakeLists.txt @@ -8,11 +8,6 @@ add_library(OCUtil STATIC OCUtil.rc ) -target_compile_options(OCUtil - PUBLIC - "/MT$<$<CONFIG:Debug>:d>" -) - target_include_directories(OCUtil PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" |