Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <Marcin.JunczysDowmunt@microsoft.com>2019-12-14 00:12:07 +0300
committerMarcin Junczys-Dowmunt <Marcin.JunczysDowmunt@microsoft.com>2019-12-14 00:12:07 +0300
commitbab02e3b8494e027477144afd8f580398ed4d3d3 (patch)
tree568c9b65efe1557a3f73c32ac2c6db64891eac5c /CMakeLists.txt
parenteba7aed344c3f903b539da0fb6e71b248b3809b9 (diff)
parentf8943a78d14cee9bec67b6ebb669b328194120f7 (diff)
Merge branch 'cblas'
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
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)