diff --git a/CMakeLists.txt b/CMakeLists.txt index dce546274..cbc9c8fae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,7 +217,7 @@ if(SFML_OS_WINDOWS) foreach(flag CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO) - string(REGEX REPLACE "/MD|/MDd|/MT|/MTd" "" ${flag} "${${flag}}") + string(REGEX REPLACE "/MDd|/MD|/MTd|/MT" "" ${flag} "${${flag}}") endforeach() add_compile_options(/MT$<$:d>) endif()