mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
Add COMPILE_SERVER option to CMake
This commit is contained in:
parent
5c4bcf9a9c
commit
d9063529ea
@ -8,6 +8,7 @@ project(marian CXX)
|
||||
# Custom CMake options
|
||||
option(COMPILE_EXAMPLES "Compile examples" OFF)
|
||||
option(COMPILE_TESTS "Compile tests" OFF)
|
||||
option(COMPILE_SERVER "Compile marian-server" ON)
|
||||
option(USE_CUDNN "Use CUDNN library" OFF)
|
||||
|
||||
# Project versioning
|
||||
@ -77,15 +78,16 @@ else(PYTHONLIBS_FOUND)
|
||||
message(WARNING "Cannot find python libraries. Building without bindings.")
|
||||
endif(PYTHONLIBS_FOUND)
|
||||
|
||||
find_package(OpenSSL)
|
||||
if(OpenSSL_FOUND)
|
||||
message(STATUS "Found OpenSSL")
|
||||
set(COMPILE_SERVER ON)
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
set(EXT_LIBS ${EXT_LIBS} ${OPENSSL_CRYPTO_LIBRARY})
|
||||
else(OpenSSL_FOUND)
|
||||
message(WARNING "Cannot find OpenSSL library. Not compiling server.")
|
||||
endif(OpenSSL_FOUND)
|
||||
if(COMPILE_SERVER)
|
||||
find_package(OpenSSL)
|
||||
if(OpenSSL_FOUND)
|
||||
message(STATUS "Found OpenSSL")
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
set(EXT_LIBS ${EXT_LIBS} ${OPENSSL_CRYPTO_LIBRARY})
|
||||
else(OpenSSL_FOUND)
|
||||
message(WARNING "Cannot find OpenSSL library. Not compiling server.")
|
||||
endif(OpenSSL_FOUND)
|
||||
endif(COMPILE_SERVER)
|
||||
|
||||
find_package(Boost COMPONENTS ${BOOST_COMPONENTS})
|
||||
if(Boost_FOUND)
|
||||
|
Loading…
Reference in New Issue
Block a user