Skip to content

Commit

Permalink
Update cmake/macros/SundialsAddLibrary.cmake
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Mützel <markus.muetzel@gmx.de>
  • Loading branch information
adriendelsalle and mmuetzel authored Apr 20, 2024
1 parent 744aee5 commit 565554e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/macros/SundialsAddLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 565554e

Please sign in to comment.