From 5e97a691947b406ea7a51cb9de0ff3af00513bcb Mon Sep 17 00:00:00 2001 From: Stefan Vigerske Date: Wed, 25 Jan 2023 05:21:31 +0100 Subject: [PATCH] set sharedlib extension to dll whenever _WIN32, not only _MSC_VER, see #628 --- ChangeLog.md | 2 ++ src/Common/IpLibraryLoader.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 2e1f97c26..cb57a7ca8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -10,6 +10,8 @@ More detailed information about incremental changes can be found in the ### 3.14.11 (20xx-yy-zz) - Added `IpoptData::TimingStats() const` [#611] +- Assume DLL library extension in linear solver library loader on Windows + also when building with other compiler than MSVC/Intel [#628]. ### 3.14.10 (2022-10-11) diff --git a/src/Common/IpLibraryLoader.hpp b/src/Common/IpLibraryLoader.hpp index ea3efced6..fa496f6e5 100644 --- a/src/Common/IpLibraryLoader.hpp +++ b/src/Common/IpLibraryLoader.hpp @@ -8,7 +8,7 @@ #include "IpReferenced.hpp" #include "IpException.hpp" -#ifdef _MSC_VER +#ifdef _WIN32 # define IPOPT_SHAREDLIBEXT "dll" #elif defined(__APPLE__) # define IPOPT_SHAREDLIBEXT "dylib"