Change BLAS from INTERFACE to PRIVATE

Compiling soplex:

gmake[2]: *** No rule to make target '/usr/lib64/libopenblas.so', needed by 'lib/libsoplex.so.7.1.1.0'.  Stop.

In papilo usr/lib64/cmake/papilo/papilo-targets.cmake

INTERFACE_LINK_LIBRARIES incl. /usr/lib64/libopenblas.so

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-11-22 12:57:42 +02:00
parent 60bc4ee6c4
commit 5e7e294f72
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3

View File

@ -30,7 +30,7 @@ index 2408b54..2e204b6 100644
+ set(CLUSOL_TARGET "")
+ find_package(BLAS)
+ if(BLAS_FOUND)
+ target_link_libraries(papilo INTERFACE ${BLAS_LIBRARIES})
+ target_link_libraries(papilo PRIVATE ${BLAS_LIBRARIES})
+ endif()
else()
set(PAPILO_HAVE_LUSOL 0)