We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d41fb commit f4333d0Copy full SHA for f4333d0
CMakeLists.txt
@@ -16,14 +16,17 @@ message(STATUS "BLAS Libraries: ${BLAS_LIBRARIES}")
16
17
set(BLA_DEFINITIONS)
18
if (BLA_VENDOR MATCHES Intel)
19
- if ($ENV{MKLROOT} STREQUAL "")
+ if ("$ENV{MKLROOT}" STREQUAL "")
20
message(FATAL_ERROR "MKLROOT is not set. Please source the Intel MKL mklvars.sh file.")
21
endif()
22
find_path(MKL_INCLUDE_DIRS NAMES mkl.h
23
PATHS $ENV{MKLROOT}/include/)
24
message(STATUS "MKL Include: ${MKL_INCLUDE_DIRS}")
25
include_directories(${MKL_INCLUDE_DIRS})
26
set(BLA_DEFINITIONS USE_MKL)
27
+elseif (BLA_VENDOR MATCHES ATLAS)
28
+ find_library(CBLAS_LIB NAMES cblas)
29
+ set(BLAS_LIBRARIES "${BLAS_LIBRARIES};${CBLAS_LIB}")
30
31
32
# include_directories(SYSTEM
0 commit comments