Skip to content

Commit

Permalink
Merge branch 'cmake-import-of-highs' into 'v91-bugfix'
Browse files Browse the repository at this point in the history
Fixed cmake import of HiGHS

See merge request integer/scip!3365
  • Loading branch information
svigerske committed Jul 19, 2024
2 parents 86dabc4 + d7f292f commit f379dbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Build system

### Cmake

- Fixed compilation and linking with HiGHS. To use HiGHS, cmake now requires to specify the directory containing the `highs-config.cmake` file via `-DHIGHS_DIR`.

### Makefile

Miscellaneous
Expand Down
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,11 @@ else()
endif()

if(HIGHS_FOUND)
include_directories(${HIGHS_INCLUDE_DIRS})
if(LPS STREQUAL "highs")
set(lpi lpi/lpi_highs.cpp)
endif()
set(LPS_LIBRARIES ${LPS_LIBRARIES} ${HIGHS_LIBRARIES} Threads::Threads)
set(LPS_PIC_LIBRARIES ${LPS_PIC_LIBRARIES} ${HIGHS_LIBRARIES} Threads::Threads)
set(LPS_LIBRARIES ${LPS_LIBRARIES} highs::highs)
set(LPS_PIC_LIBRARIES ${LPS_PIC_LIBRARIES} highs::highs)
message(WARNING "EXPERIMENTAL: You are using the experimental HiGHS interface. Please report any issues on https://github.com/scipopt/scip.")
endif()

Expand Down

0 comments on commit f379dbc

Please sign in to comment.