From 565554e640ddaf6f525426eaee448238f55cdf72 Mon Sep 17 00:00:00 2001 From: Adrien Delsalle Date: Sat, 20 Apr 2024 12:02:32 +0200 Subject: [PATCH] Update cmake/macros/SundialsAddLibrary.cmake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Markus Mützel --- cmake/macros/SundialsAddLibrary.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macros/SundialsAddLibrary.cmake b/cmake/macros/SundialsAddLibrary.cmake index 6a029978cf..6198543850 100644 --- a/cmake/macros/SundialsAddLibrary.cmake +++ b/cmake/macros/SundialsAddLibrary.cmake @@ -325,7 +325,7 @@ macro(sundials_add_library target) # set the correct output name if(sundials_add_library_OUTPUT_NAME) - if(WIN32 AND ${_libtype} MATCHES "STATIC") + if((MSVC OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")) AND ${_libtype} MATCHES "STATIC") set_target_properties(${_actual_target_name} PROPERTIES OUTPUT_NAME "${sundials_add_library_OUTPUT_NAME}_static" CLEAN_DIRECT_OUTPUT 1