diff --git a/Modelica/Resources/BuildProjects/CMake/CMakeLists.txt b/Modelica/Resources/BuildProjects/CMake/CMakeLists.txt index bbd8fa37d0..07833b1fef 100644 --- a/Modelica/Resources/BuildProjects/CMake/CMakeLists.txt +++ b/Modelica/Resources/BuildProjects/CMake/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15) if(POLICY CMP0091) cmake_policy(SET CMP0091 NEW) - if(WIN32 AND CMAKE_GENERATOR MATCHES "Visual Studio .*|NMake.*") + if(WIN32) message(STATUS "Configuring to link the MSVC runtime library statically") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif()