From 02fe28f35b8e23edcb8012462d41caecfc41ce52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Thu, 19 Sep 2024 19:49:09 +0200 Subject: [PATCH] Fix regex for SFML_USE_STATIC_STD_LIBS --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()