mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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:
@@ -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