forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
33 additions
and
11 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
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,15 @@ | ||
if(DEFINED BLAS_DIR) | ||
string(APPEND CMAKE_PREFIX_PATH ";${BLAS_DIR}") | ||
endif() | ||
if(DEFINED BLAS_LIBRARY) | ||
set(BLAS_LIBRARIES ${BLAS_LIBRARY}) | ||
endif() | ||
|
||
find_package(BLAS REQUIRED) | ||
|
||
if(NOT TARGET BLAS::BLAS) | ||
add_library(BLAS::BLAS UNKNOWN IMPORTED) | ||
set_target_properties(BLAS::BLAS PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${BLAS_LIBRARIES}") | ||
endif() |
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,17 @@ | ||
# In compatibility to builtin FindLAPACK.cmake before v3.5.4 | ||
if(DEFINED LAPACK_DIR) | ||
string(APPEND CMAKE_PREFIX_PATH ";${LAPACK_DIR}") | ||
endif() | ||
if(DEFINED LAPACK_LIBRARY) | ||
set(LAPACK_LIBRARIES ${LAPACK_LIBRARY}) | ||
endif() | ||
|
||
find_package(Blas REQUIRED) | ||
find_package(LAPACK REQUIRED) | ||
|
||
if(NOT TARGET LAPACK::LAPACK) | ||
add_library(LAPACK::LAPACK UNKNOWN IMPORTED) | ||
set_target_properties(LAPACK::LAPACK PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${LAPACK_LIBRARIES}") | ||
endif() |