mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
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:
1 parent
cdf4234bc4
commit
d8ade0500e
2 files changed
+2
-2
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user