From 75092efedca71374f177f4739d24f7a83b6f7f02 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Tue, 14 May 2024 16:40:46 +0200 Subject: [PATCH] CMake: Fix dll install location --- CHANGELOG.md | 4 ++++ cmake/macros/SundialsAddLibrary.cmake | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59ffc7a35d..fe9d8d4c18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Changes to SUNDIALS in release X.Y.Z +Fixed the runtime library installation path for windows systems. This fix changes the +default library installation path from ``CMAKE_INSTALL_PREFIX/CMAKE_INSTALL_LIBDIR`` to +``CMAKE_INSTALL_PREFIX/CMAKE_INSTALL_BINDIR``. + Created shared user interface for ARKODE user-callable routines, to allow more uniform control over time-stepping algorithms, improved extensibility, and simplified code maintenance. Marked the corresponding stepper-specific diff --git a/cmake/macros/SundialsAddLibrary.cmake b/cmake/macros/SundialsAddLibrary.cmake index ca0d226191..9fbab8c191 100644 --- a/cmake/macros/SundialsAddLibrary.cmake +++ b/cmake/macros/SundialsAddLibrary.cmake @@ -355,7 +355,11 @@ macro(sundials_add_library target) endif() # install phase - install(TARGETS ${_actual_target_name} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT sundials-targets) + install(TARGETS ${_actual_target_name} + EXPORT sundials-targets + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif()