mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Find{BLAS,LAPACK}: Restore targets in {BLAS,LAPACK}_LIBRARIES with NVPL
Revert commit d8ade0500e (Find{BLAS,LAPACK}: Provide full paths in
`{BLAS,LAPACK}_LIBRARIES` with NVPL, 2026-09-05). These variables
should supply full dependency, not just the immediate library file
returned by `get_target_property(IMPORTED_LOCATION_RELEASE)`.
Since the documentation regarding these two variables has been
updated, let's keep the old behavior which actually works better.
Issue: #28073
This commit is contained in:
1 parent
61a1c48686
commit
c0a233dce9
2 files changed
+2
-2
No files matched your search
@@ -1395,7 +1395,7 @@ if(BLA_VENDOR STREQUAL "NVPL" OR BLA_VENDOR STREQUAL "All")
|
||||
set(_blas_lib "nvpl::blas${_nvpl_int}${_nvpl_thread}")
|
||||
|
||||
if(TARGET ${_blas_lib})
|
||||
get_target_property(BLAS_LIBRARIES ${_blas_lib} IMPORTED_LOCATION_RELEASE)
|
||||
set(BLAS_LIBRARIES ${_blas_lib})
|
||||
break()
|
||||
endif()
|
||||
|
||||
|
||||
@@ -759,7 +759,7 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
|
||||
set(_lapack_lib "nvpl::lapack${_nvpl_int}${_nvpl_thread}")
|
||||
|
||||
if(TARGET ${_lapack_lib})
|
||||
get_target_property(LAPACK_LIBRARIES ${_lapack_lib} IMPORTED_LOCATION_RELEASE)
|
||||
set(LAPACK_LIBRARIES ${_lapack_lib})
|
||||
break()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in new issue
Block a user