Skip to content

Commit 5d31a93

Browse files
committed
cmake: bump scip to v924
note: also bump soplex to v7.1.6 tested using: `./build/bin/math_opt_solvers_gscip_solver_test`
1 parent 8e56816 commit 5d31a93

File tree

4 files changed

+19
-54
lines changed

4 files changed

+19
-54
lines changed

Dependencies.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Cgl=0.60.9
1010
Cbc=2.10.12
1111
GLPK=5.0
1212
HiGHS=v1.12.0
13-
Scip=v923
13+
Scip=v924
1414
# Python
1515
pybind11=v2.13.6
1616
pybind11_abseil=v202402.0

cmake/dependencies/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ if(BUILD_soplex)
353353
FetchContent_Declare(
354354
soplex
355355
GIT_REPOSITORY "https://github.com/scipopt/soplex.git"
356-
GIT_TAG "release-713"
356+
GIT_TAG "release-716"
357357
GIT_SHALLOW TRUE
358358
UPDATE_COMMAND git reset --hard
359359
PATCH_COMMAND git apply --ignore-whitespace
360-
"${CMAKE_CURRENT_LIST_DIR}/../../patches/soplex-v7.1.3.patch"
360+
"${CMAKE_CURRENT_LIST_DIR}/../../patches/soplex-v7.1.6.patch"
361361
)
362362
set(SHARED ON CACHE BOOL "Soplex param" FORCE)
363363
set(ZLIB ON CACHE BOOL "Soplex param" FORCE)
@@ -383,11 +383,11 @@ if(BUILD_SCIP)
383383
FetchContent_Declare(
384384
scip
385385
GIT_REPOSITORY "https://github.com/scipopt/scip.git"
386-
GIT_TAG "v923"
386+
GIT_TAG "v924"
387387
GIT_SHALLOW TRUE
388388
UPDATE_COMMAND git reset --hard
389389
PATCH_COMMAND git apply --ignore-whitespace
390-
"${CMAKE_CURRENT_LIST_DIR}/../../patches/scip-v923.patch"
390+
"${CMAKE_CURRENT_LIST_DIR}/../../patches/scip-v924.patch"
391391
)
392392
set(SHARED ON CACHE BOOL "Scip param" FORCE)
393393
set(ZLIB ON CACHE BOOL "Scip param" FORCE)
Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 0b21f5a..6f08341 100644
2+
index 96aefab..760b0f8 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
55
@@ -27,6 +27,10 @@ set(CPACK_PACKAGE_VERSION_PATCH "${SOPLEX_VERSION_PATCH}")
@@ -123,7 +123,7 @@ index 0b21f5a..6f08341 100644
123123
endif()
124124

125125
# disable fused floating point contraction to enhance reproducibility across compilers and architectures
126-
@@ -247,7 +243,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/soplex/config.h.in ${PROJECT_BINA
126+
@@ -244,7 +240,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/soplex/config.h.in ${PROJECT_BINA
127127
configure_file(${PROJECT_SOURCE_DIR}/soplex-config.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/soplex-config.cmake" @ONLY)
128128

129129
add_subdirectory(src)
@@ -136,21 +136,10 @@ index 0b21f5a..6f08341 100644
136136
+ add_subdirectory(check)
137137
+endif()
138138
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
139-
index 84ec5a5..4552300 100644
139+
index 16ffb17..b5a0b56 100644
140140
--- a/src/CMakeLists.txt
141141
+++ b/src/CMakeLists.txt
142-
@@ -3,8 +3,8 @@
143-
#
144-
function(setLibProperties targetname outputname)
145-
set_target_properties(${targetname} PROPERTIES
146-
- OUTPUT_NAME ${outputname}
147-
- MACOSX_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
148-
+ OUTPUT_NAME ${outputname}
149-
+ )
150-
endfunction(setLibProperties)
151-
152-
include(GNUInstallDirs)
153-
@@ -193,24 +193,28 @@ target_link_libraries(libsoplexshared libsoplex ${libs})
142+
@@ -193,25 +193,27 @@ target_link_libraries(libsoplexshared libsoplex ${libs})
154143
set_target_properties(libsoplexshared PROPERTIES CXX_VISIBILITY_PRESET default)
155144

156145
# create soplex binary using library without pic
@@ -159,16 +148,16 @@ index 84ec5a5..4552300 100644
159148
+if(SOPLEX_SOPLEX)
160149
+ add_executable(soplex EXCLUDE_FROM_ALL soplexmain.cpp)
161150
+ target_link_libraries(soplex PRIVATE libsoplex ${Boost_LIBRARIES})
162-
+
163-
+ # set the install rpath to the installed destination
164-
+ set_target_properties(soplex PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
165151

166152
-if(EMSCRIPTEN AND EMSCRIPTEN_HTML)
167153
+ if(EMSCRIPTEN AND EMSCRIPTEN_HTML)
168154
set_target_properties(soplex PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/soplex_webdemo_shell.html)
169155
set(CMAKE_EXECUTABLE_SUFFIX ".html")
170156
-endif()
171157
+ endif()
158+
+
159+
+ # set the install rpath to the installed destination
160+
+ set_target_properties(soplex PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
172161

173162
-if(CMAKE_BUILD_TYPE EQUAL "Debug")
174163
- find_package(Sanitizers)
@@ -179,19 +168,16 @@ index 84ec5a5..4552300 100644
179168
+ endif()
180169
endif()
181170

182-
-add_executable(example EXCLUDE_FROM_ALL example.cpp)
183-
-target_link_libraries(example libsoplex)
184-
-
171+
add_executable(example EXCLUDE_FROM_ALL example.cpp)
172+
target_link_libraries(example libsoplex)
173+
185174
-# set the install rpath to the installed destination
186175
-set_target_properties(soplex PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
187-
+if(SOPLEX_EXAMPLE)
188-
+ add_executable(example example.cpp)
189-
+ target_link_libraries(example libsoplex)
190-
+endif()
191-
176+
-
192177
# install the header files of soplex
193178
install(FILES ${headers} ${PROJECT_BINARY_DIR}/soplex/config.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/soplex)
194-
@@ -237,15 +241,28 @@ install(FILES
179+
install(FILES soplex.h soplex.hpp soplex_interface.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
180+
@@ -237,15 +239,23 @@ install(FILES
195181
DESTINATION include/soplex/external/zstr)
196182

197183
# install the binary and the library to appropriate lcoations and add them to an export group
@@ -202,17 +188,12 @@ index 84ec5a5..4552300 100644
202188
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
203189
+endif()
204190
+
205-
+install(TARGETS libsoplex libsoplex-pic libsoplexshared
206-
+ EXPORT soplex-targets
191+
+install(TARGETS libsoplex libsoplex-pic libsoplexshared EXPORT soplex-targets
207192
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
208193
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
209194
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
210195
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
211196

212-
+install(EXPORT soplex-targets
213-
+ FILE soplex-targets.cmake
214-
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/soplex)
215-
+
216197
# Add library targets to the build-tree export set
217198
-export(TARGETS libsoplex libsoplex-pic libsoplexshared
218199
- FILE "${CMAKE_BINARY_DIR}/soplex-targets.cmake")
@@ -223,19 +204,3 @@ index 84ec5a5..4552300 100644
223204

224205
#configure the config file for the build tree
225206
set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/src" "${PROJECT_BINARY_DIR}")
226-
@@ -259,7 +276,6 @@ ${CMAKE_BINARY_DIR}/soplex-config-version.cmake
227-
COMPATIBILITY SameMajorVersion
228-
)
229-
230-
-
231-
#configure the config file for the install
232-
set(CONF_INCLUDE_DIRS "\${CMAKE_CURRENT_LIST_DIR}/../../../include")
233-
configure_file(${PROJECT_SOURCE_DIR}/soplex-config.cmake.in
234-
@@ -267,7 +283,6 @@ configure_file(${PROJECT_SOURCE_DIR}/soplex-config.cmake.in
235-
236-
# install the targets of the soplex export group and the config file so that other projects
237-
# can link easily against soplex
238-
-install(EXPORT soplex-targets FILE soplex-targets.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/soplex)
239-
install(FILES "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/soplex-config.cmake"
240-
${CMAKE_BINARY_DIR}/soplex-config-version.cmake
241-
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/soplex)

0 commit comments

Comments
 (0)