Skip to content
Snippets Groups Projects
Commit ed7a0167 authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

find system blas as fallback when linking user code

parent 4e40db23
Branches
Tags
No related merge requests found
...@@ -121,7 +121,12 @@ if(AMDIS_NEED_UMFPACK) ...@@ -121,7 +121,12 @@ if(AMDIS_NEED_UMFPACK)
list(APPEND AMDIS_LIBRARIES ${BLAS_LIBRARY}) list(APPEND AMDIS_LIBRARIES ${BLAS_LIBRARY})
list(APPEND AMDIS_LIBRARY_DIRS ${BLAS_LIBRARY_DIR}) list(APPEND AMDIS_LIBRARY_DIRS ${BLAS_LIBRARY_DIR})
else() else()
message(ERROR "Could not find the BLAS library. Please set the variable BLAS_LIBRARY to the blas library with full path") find_package(BLAS REQUIRED)
if(BLAS_FOUND)
list(APPEND AMDIS_LIBRARIES ${BLAS_LIBRARIES})
else()
message(FATAL_ERROR "Could not find the BLAS library. Please set the variable BLAS_LIBRARY to the blas library with full path")
endif()
endif() endif()
endif("$ENV{BLA_VENDOR}" STREQUAL "ACML") endif("$ENV{BLA_VENDOR}" STREQUAL "ACML")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment