Skip to content

Commit fe9509f

Browse files
committed
cmake: fix soplex boost check in a super build
1 parent b9c03b9 commit fe9509f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cmake/dependencies/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ if(BUILD_Boost)
345345
UPDATE_COMMAND git reset --hard --recurse-submodules
346346
PATCH_COMMAND git apply --ignore-whitespace
347347
"${CMAKE_CURRENT_LIST_DIR}/../../patches/boost-1.87.0.patch"
348+
OVERRIDE_FIND_PACKAGE # Needed for Soplex
348349
SYSTEM
349350
)
350351
set(BOOST_INCLUDE_LIBRARIES multiprecision serialization)

patches/soplex-v8.0.0.patch

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 9511442..58a8a58 100644
2+
index 9511442..3993fc4 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5+
@@ -1,4 +1,4 @@
6+
-cmake_minimum_required(VERSION 3.11)
7+
+cmake_minimum_required(VERSION 3.25)
8+
9+
# FindBoost is removed in version cmake 3.30
10+
if(POLICY CMP0167)
511
@@ -31,6 +31,10 @@ set(CPACK_PACKAGE_VERSION_PATCH "${SOPLEX_VERSION_PATCH}")
612
set(CPACK_PACKAGE_VENDOR "Zuse Institute Berlin")
713
include(CPack)

0 commit comments

Comments
 (0)