mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-03 20:13:47 +03:00
small fix to cmake file
This commit is contained in:
parent
d9d914abb7
commit
50ce630449
@ -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")
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user