metis-5.1.0-shared-GKlib.patch 590 B

12345678910111213141516171819202122
  1. --- a/GKlib/CMakeLists.txt
  2. +++ b/GKlib/CMakeLists.txt
  3. @@ -7,7 +7,7 @@
  4. include(GKlibSystem.cmake)
  5. include_directories(".")
  6. -add_library(GKlib STATIC ${GKlib_sources})
  7. +add_library(GKlib SHARED ${GKlib_sources})
  8. if(UNIX)
  9. target_link_libraries(GKlib m)
  10. endif(UNIX)
  11. @@ -16,6 +16,6 @@
  12. add_subdirectory("test")
  13. install(TARGETS GKlib
  14. - ARCHIVE DESTINATION lib
  15. - LIBRARY DESTINATION lib)
  16. -install(FILES ${GKlib_includes} DESTINATION include)
  17. + ARCHIVE DESTINATION lib${LIB_SUFFIX}
  18. + LIBRARY DESTINATION lib${LIB_SUFFIX})
  19. +install(FILES ${GKlib_includes} DESTINATION include/metis)