Commit 099de47f authored by Max Lyon's avatar Max Lyon
Browse files

try to find lpsolve

parent 32f21615
Pipeline #16650 passed with stages
in 10 minutes and 21 seconds
......@@ -472,6 +472,15 @@ endif(NEED_LAPACK AND NOT SUITESPARSE_FOUND)
set(CMAKE_FIND_LIBRARY_PREFIXES "${TMP_CMAKE_FIND_LIBRARY_PREFIXES}")
find_package (lpsolve)
if (TARGET lpsolve::lpsolve )
set (COMISO_LPSOLVE_CONFIG_FILE_SETTINGS "#define COMISO_LPSOLVE_AVAILABLE 1" )
target_link_libraries (CoMISo PRIVATE lpsolve::lpsolve)
else ()
message (STATUS "lpsolve not found!")
set (COMISO_LPSOLVE_CONFIG_FILE_SETTINGS "#define COMISO_LPSOLVE_AVAILABLE 0" )
endif ()
#target_include_directories(CoMISo PRIVATE "${COMISO_INCLUDE_DIRECTORIES}")
#get_target_property(INC_DIRS CoMISo INCLUDE_DIRECTORIES)
......
......@@ -27,3 +27,4 @@
@COMISO_COINUTILS_CONFIG_FILE_SETTINGS@
@COMISO_MOSEK_CONFIG_FILE_SETTINGS@
@COMISO_OSQP_CONFIG_FILE_SETTINGS@
@COMISO_LPSOLVE_CONFIG_FILE_SETTINGS@
Subproject commit 8f97c5ecc6e4653af0959093f4b487939d3db08f
Subproject commit 7b7646e66c33aaf800fc235c6b18a9fec5706ce3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment