Fix regex for SFML_USE_STATIC_STD_LIBS

This commit is contained in:
Lukas Dürrenberger 2024-09-19 19:49:09 +02:00
parent 5545df7290
commit 02fe28f35b

View File

@ -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$<$<CONFIG:Debug>:d>)
endif()