Skip to content

FindBLAS: don't write an imported target name into BLAS_LIBRARIES

Rolf Eike Beer requested to merge DerDakon/cmake:BLAS-no-target-in-libs into master

Since commit !1599 (merged) the BLAS_LIBRARIES result variable may incorrectly contain the name of an imported target. Instead store the list of libraries in the variable. Unfortunately pkg_check_modules does not provide a way to get this so we need to use a (temporary) hack of reading INTERFACE_LINK_LIBRARIES from the interface library target.

Cc: @tamiko
Fixes: #17934 (closed)

Edited by Brad King

Merge request reports