@@ -20,12 +20,14 @@ if(HIPO)
2020 set (sources_python ${sources_python}
2121 ${hipo_sources_python}
2222 ${factor_highs_sources_python}
23- ${hipo_util_sources_python} )
23+ ${hipo_util_sources_python}
24+ ${hipo_orderings_sources} )
2425
2526 set (headers_python ${headers_python}
2627 ${hipo_headers_python}
2728 ${factor_highs_headers_python}
28- ${hipo_util_headers_python} )
29+ ${hipo_util_headers_python}
30+ ${hipo_orderings_headers} )
2931
3032endif ()
3133
@@ -56,31 +58,11 @@ python_add_library(_core MODULE highs/highs_bindings.cpp WITH_SOABI)
5658target_link_libraries (_core PRIVATE pybind11::headers)
5759
5860if (HIPO)
59- if (WIN32 )
60- target_link_libraries (_core PRIVATE OpenBLAS::OpenBLAS )
61+ if (WIN32 OR LINUX )
62+ target_link_libraries (_core PRIVATE openblas )
6163 target_compile_definitions (_core PRIVATE HIPO_USES_OPENBLAS)
62- else ()
63- # if (NOT METIS_ROOT STREQUAL "")
64- # target_include_directories(_core PRIVATE ${METIS_DST_DIR}/include)
65- # target_link_libraries(_core PRIVATE ${METIS_DST_DIR}/lib/metis.lib)
66- # else()
67-
68- target_link_libraries (_core PRIVATE BLAS::BLAS)
69-
70- string (TOLOWER "${BLAS_LIBRARIES} " blas_lower)
71- if (blas_lower MATCHES "openblas" )
72- target_compile_definitions (_core PRIVATE HIPO_USES_OPENBLAS)
73- elseif (blas_lower MATCHES "accelerate" )
74- target_compile_definitions (_core PRIVATE HIPO_USES_APPLE_BLAS)
75- endif ()
76-
77- endif ()
78-
79- if (metis_FOUND)
80- target_link_libraries (_core PRIVATE metis)
81- else ()
82- target_include_directories (_core PRIVATE "${METIS_PATH} " )
83- target_link_libraries (_core PRIVATE "${METIS_LIB} " )
64+ else () # APPLE
65+ target_compile_definitions (_core PRIVATE HIPO_USES_APPLE_BLAS)
8466 endif ()
8567
8668endif ()
0 commit comments