Skip to content

Commit f4333d0

Browse files
committed
mkl fix?
1 parent 15d41fb commit f4333d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ message(STATUS "BLAS Libraries: ${BLAS_LIBRARIES}")
1616

1717
set(BLA_DEFINITIONS)
1818
if (BLA_VENDOR MATCHES Intel)
19-
if ($ENV{MKLROOT} STREQUAL "")
19+
if ("$ENV{MKLROOT}" STREQUAL "")
2020
message(FATAL_ERROR "MKLROOT is not set. Please source the Intel MKL mklvars.sh file.")
2121
endif()
2222
find_path(MKL_INCLUDE_DIRS NAMES mkl.h
2323
PATHS $ENV{MKLROOT}/include/)
2424
message(STATUS "MKL Include: ${MKL_INCLUDE_DIRS}")
2525
include_directories(${MKL_INCLUDE_DIRS})
2626
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}")
2730
endif()
2831

2932
# include_directories(SYSTEM

0 commit comments

Comments
 (0)