Skip to content

Commit

Permalink
Fix building with a shared metis
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Jan 1, 2025
1 parent cd27b7f commit fb0d41d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gtsam/3rdparty/metis/libmetis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb0d41d

Please sign in to comment.