From 2aba908be65af05aba1b161760e227d0aec118a3 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 27 Mar 2021 14:24:49 +0100 Subject: [PATCH] Only using the static non debug runtime library --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fbce4f..49b746d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,7 @@ if (MSVC) CMAKE_C_FLAGS_RELEASE ) foreach(CompilerFlag ${CompilerFlags}) - string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") + string(REGEX REPLACE "/M[DT]d?" "/MT" ${CompilerFlag} "${${CompilerFlag}}") endforeach() add_compile_options("/EHsc") #We require exception handling else()