small fix to cmake file

This commit is contained in:
Marcin Junczys-Dowmunt 2020-06-19 10:28:45 -07:00
parent d9d914abb7
commit 50ce630449
2 changed files with 2 additions and 1 deletions

View File

@ -358,6 +358,7 @@ if(COMPILE_CPU)
if(MKL_FOUND)
include_directories(${MKL_INCLUDE_DIR})
set(EXT_LIBS ${EXT_LIBS} ${MKL_LIBRARIES})
set(BLAS_FOUND TRUE)
add_definitions(-DBLAS_FOUND=1 -DMKL_FOUND=1)
else(MKL_FOUND)
set(BLAS_VENDOR "OpenBLAS")

View File

@ -107,7 +107,7 @@ add_library(marian STATIC
$<TARGET_OBJECTS:zlib>
)
if(COMPILE_CPU)
if(BLAS_FOUND)
target_sources(marian PRIVATE ${CMAKE_CURRENT_LIST_DIR}/layers/lsh.cpp $<TARGET_OBJECTS:faiss>)
endif()