From fb0d41dba7cb9608622a55eda8d3258d89b62349 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Wed, 1 Jan 2025 00:08:15 -0500 Subject: [PATCH] Fix building with a shared metis --- gtsam/3rdparty/metis/libmetis/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/gtsam/3rdparty/metis/libmetis/CMakeLists.txt b/gtsam/3rdparty/metis/libmetis/CMakeLists.txt index 92f931b986..fa8f396d3d 100644 --- a/gtsam/3rdparty/metis/libmetis/CMakeLists.txt +++ b/gtsam/3rdparty/metis/libmetis/CMakeLists.txt @@ -4,6 +4,7 @@ include_directories(.) file(GLOB metis_sources *.c) # Build libmetis. add_definitions(-fPIC) +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) add_library(metis-gtsam ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources}) if(UNIX) target_link_libraries(metis-gtsam m)