29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
--- papilo-2.1.4/CMakeLists.txt.orig 2023-12-06 11:38:08.348390205 -0700
|
|
+++ papilo-2.1.4/CMakeLists.txt 2023-12-06 11:38:51.994792168 -0700
|
|
@@ -24,8 +24,6 @@ include(GNUInstallDirs)
|
|
|
|
# path to e.g. findGMP module
|
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules/)
|
|
-set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
|
-set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
option(GMP "should gmp be linked" ON)
|
|
@@ -197,7 +195,7 @@ if(NOT MSVC)
|
|
endif()
|
|
set(PAPILO_USE_STANDARD_HASHMAP 1)
|
|
|
|
-add_library(papilo-core STATIC
|
|
+add_library(papilo-core SHARED
|
|
src/papilo/core/VariableDomains.cpp
|
|
src/papilo/core/SparseStorage.cpp
|
|
src/papilo/core/ConstraintMatrix.cpp
|
|
@@ -231,6 +229,7 @@ add_library(papilo-core STATIC
|
|
function(setLibProperties targetname outputname)
|
|
set_target_properties(${targetname} PROPERTIES
|
|
OUTPUT_NAME ${outputname}
|
|
+ POSITION_INDEPENDENT_CODE ON VERSION 0.0.0 SOVERSION 0
|
|
MACOSX_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
|
endfunction(setLibProperties)
|
|
if(MSVC)
|