Skip to content

Commit

Permalink
fix boost include issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leoneifler committed Dec 7, 2022
1 parent 33604cc commit 11f2dd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ endif()
# export compilation settings to header file
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/soplex/config.h.in ${PROJECT_BINARY_DIR}/soplex/config.h @ONLY)

configure_file(${PROJECT_SOURCE_DIR}/soplex-config.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/soplex-config.cmake" @ONLY)

add_subdirectory(src)
add_subdirectory(tests/c_interface)
add_subdirectory(check)
Expand Down
5 changes: 5 additions & 0 deletions soplex-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ set(SOPLEX_LIBRARIES libsoplex)
set(SOPLEX_PIC_LIBRARIES libsoplex-pic)
set(SOPLEX_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
set(SOPLEX_FOUND TRUE)

if(@SOPLEX_WITH_BOOST@)
find_package(Boost 1.71.0)
include_directories(${Boost_INCLUDE_DIRS})
endif()

0 comments on commit 11f2dd3

Please sign in to comment.