diff options
author | Marcin Junczys-Dowmunt <Marcin.JunczysDowmunt@microsoft.com> | 2019-12-14 00:12:07 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <Marcin.JunczysDowmunt@microsoft.com> | 2019-12-14 00:12:07 +0300 |
commit | bab02e3b8494e027477144afd8f580398ed4d3d3 (patch) | |
tree | 568c9b65efe1557a3f73c32ac2c6db64891eac5c /CMakeLists.txt | |
parent | eba7aed344c3f903b539da0fb6e71b248b3809b9 (diff) | |
parent | f8943a78d14cee9bec67b6ebb669b328194120f7 (diff) |
Merge branch 'cblas'
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ff5def0e..ab5460e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,9 +321,12 @@ if(COMPILE_CPU) set(BLA_VENDOR "OpenBLAS") find_package(BLAS) if(BLAS_FOUND) - include_directories(${BLAS_INCLUDE_DIR}) - set(EXT_LIBS ${EXT_LIBS} ${BLAS_LIBRARIES}) - add_definitions(-DBLAS_FOUND=1) + include(FindCBLAS) + if(CBLAS_FOUND) + include_directories(${BLAS_INCLUDE_DIR} ${CBLAS_INCLUDE_DIR}) + set(EXT_LIBS ${EXT_LIBS} ${BLAS_LIBRARIES} ${CBLAS_LIBRARIES}) + add_definitions(-DBLAS_FOUND=1) + endif(CBLAS_FOUND) endif(BLAS_FOUND) endif(MKL_FOUND) endif(COMPILE_CPU) |