11diff --git a/CMakeLists.txt b/CMakeLists.txt
2- index 9511442..3993fc4 100644
2+ index 1c00fb3..6d2f282 100644
33--- a/CMakeLists.txt
44+++ b/CMakeLists.txt
55@@ -1,4 +1,4 @@
@@ -49,7 +49,7 @@ index 9511442..3993fc4 100644
4949
5050 # set function visibility default to hidden
5151 set(CMAKE_CXX_VISIBILITY_PRESET hidden)
52- @@ -124 ,12 +136 ,11 @@ if(COVERAGE)
52+ @@ -127 ,12 +139 ,11 @@ if(COVERAGE)
5353 endif()
5454
5555 if(ZLIB)
@@ -67,67 +67,7 @@ index 9511442..3993fc4 100644
6767 endif()
6868
6969 if(GMP)
70- @@ -171,42 +182,24 @@ else()
71- set(SOPLEX_WITH_PAPILO off)
72- endif()
73-
74- - set(BOOST_MINIMUM_VERSION 1.65.0)
75- + set(BOOST_MINIMUM_VERSION 1.65.0) # PaPILO requires at least Boost 1.65 (on mac 1.72)
76- if(BOOST)
77- - find_package(Boost ${BOOST_MINIMUM_VERSION}) # PaPILO requires at least Boost 1.65 (on mac 1.72)
78- - if(Boost_FOUND)
79- - set(SOPLEX_WITH_BOOST on)
80- - if(NOT Boost_VERSION_MACRO)
81- - set(Boost_VERSION_MACRO ${Boost_VERSION})
82- - endif()
83- - if(${Boost_VERSION_MACRO} LESS "107000")
84- - if(NOT SOPLEX_WITH_GMP)
85- - message(SEND_ERROR "If no GMP is linked, then the minimal Boost verion is 1.70. \
86- - Found Boost version is ${Boost_VERSION_STRING}. Either provide newer Boost, link GMP, or disable Boost by setting BOOST=off.")
87- - else()
88- - message(WARNING "The multiprecision and quadprecision features are disabled with Boost versions older than 1.70. \
89- - Found Boost version is ${Boost_VERSION_STRING}.")
90- - endif()
91- - endif()
92- - if(Boost_DIR)
93- - message(STATUS "Found Boost: ${Boost_DIR}")
94- - endif()
95- - set(libs ${libs} Boost::boost)
96- - if(MPFR) # MPFR is used within boost multiprecision, so using it without Boost does not make sense
97- - find_package(MPFR)
98- - endif()
99- - if(MPFR_FOUND)
100- - message(STATUS "SoPlex with Boost MPFR ${MPFR_VERSION} libraries")
101- - set(SOPLEX_WITH_MPFR on)
102- - include_directories(${MPFR_INCLUDE_DIRS})
103- - set(libs ${libs} ${MPFR_LIBRARIES})
104- - else()
105- - message(STATUS "SoPlex with Boost CPP multiprecision libraries")
106- - set(SOPLEX_WITH_CPPMPF on)
107- - endif()
108- - else()
109- - set(BOOST off)
110- - endif()
111- + if(NOT TARGET Boost::multiprecision OR NOT TARGET Boost::serialization)
112- + message(FATAL_ERROR "Boost::multiprecision or Boost::serialization not available!!!")
113- + find_package(Boost ${BOOST_MINIMUM_VERSION} REQUIRED)
114- + endif()
115- + set(SOPLEX_WITH_BOOST on)
116- + set(libs ${libs} Boost::multiprecision Boost::serialization)
117- + if(MPFR) # MPFR is used within boost multiprecision, so using it without Boost does not make sense
118- + find_package(MPFR REQUIRED)
119- + message(STATUS "SoPlex with Boost MPFR libraries")
120- + set(SOPLEX_WITH_MPFR on)
121- + include_directories(${MPFR_INCLUDE_DIRS})
122- + set(libs ${libs} ${MPFR_LIBRARIES})
123- + else()
124- + message(STATUS "SoPlex with Boost CPP multiprecision libraries")
125- + set(SOPLEX_WITH_CPPMPF on)
126- + endif()
127- endif()
128-
129- # disable fused floating point contraction to enhance reproducibility across compilers and architectures
130- @@ -251,7 +244,7 @@ set(EXTRA_CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
70+ @@ -254,7 +265,7 @@ set(EXTRA_CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
13171 configure_file(${PROJECT_SOURCE_DIR}/soplex-config.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/soplex-config.cmake" @ONLY)
13272
13373 add_subdirectory(src)
@@ -140,7 +80,7 @@ index 9511442..3993fc4 100644
14080+ add_subdirectory(check)
14181+ endif()
14282diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
143- index d57c5fe..11f914a 100644
83+ index f3758e1..ecde9ae 100644
14484--- a/src/CMakeLists.txt
14585+++ b/src/CMakeLists.txt
14686@@ -193,28 +193,32 @@ target_link_libraries(libsoplexshared libsoplex ${libs})
0 commit comments