diff --git a/CHANGELOG b/CHANGELOG index ca47afa0f6..f519063d80 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8890b93726..5b59c562a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()