-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[open3d] fix finding of blas/lapack libraries
- Loading branch information
Showing
4 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake | ||
index d694621ad..49a5f899e 100644 | ||
--- a/3rdparty/find_dependencies.cmake | ||
+++ b/3rdparty/find_dependencies.cmake | ||
@@ -1597,6 +1597,12 @@ else(OPEN3D_USE_ONEAPI_PACKAGES) | ||
find_package(LAPACKE) | ||
if(BLAS_FOUND AND LAPACK_FOUND AND LAPACKE_FOUND) | ||
message(STATUS "System BLAS/LAPACK/LAPACKE found.") | ||
+ if(TARGET BLAS::BLAS) | ||
+ list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM BLAS::BLAS) | ||
+ endif() | ||
+ if(TARGET LAPACK) | ||
+ list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM LAPACK::LAPACK) | ||
+ endif() | ||
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_SYSTEM | ||
${BLAS_LIBRARIES} | ||
${LAPACK_LIBRARIES} | ||
-- | ||
2.45.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters