Find{BLAS,LAPACK}: Provide full paths in {BLAS,LAPACK}_LIBRARIES with NVPL

Documentation as of CMake 4.4.3 states that these variables provide full
paths to libraries, so some existing consumers expect it.

NVPL provides imported targets that set `IMPORTED_LOCATION_RELEASE`.

Fixes: #28073
This commit is contained in:
Ye Luo
2026-09-07 12:37:49 -04:00
committed by Brad King
parent cdf4234bc4
commit d8ade0500e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1386,7 +1386,7 @@ if(BLA_VENDOR STREQUAL "NVPL" OR BLA_VENDOR STREQUAL "All")
set(_blas_lib "nvpl::blas${_nvpl_int}${_nvpl_thread}")
if(TARGET ${_blas_lib})
set(BLAS_LIBRARIES ${_blas_lib})
get_target_property(BLAS_LIBRARIES ${_blas_lib} IMPORTED_LOCATION_RELEASE)
break()
endif()
+1 -1
View File
@@ -758,7 +758,7 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
set(_lapack_lib "nvpl::lapack${_nvpl_int}${_nvpl_thread}")
if(TARGET ${_lapack_lib})
set(LAPACK_LIBRARIES ${_lapack_lib})
get_target_property(LAPACK_LIBRARIES ${_lapack_lib} IMPORTED_LOCATION_RELEASE)
break()
endif()