Commit 8707fba8 authored by Ilya Churaev's avatar Ilya Churaev Committed by Scott Cyphers

Added option in order to build nGraph core static library (#2989)

parent db34286c
......@@ -168,6 +168,7 @@ option(NGRAPH_PYTHON_BUILD_ENABLE "Enable build nGraph python package wheel" FAL
option(NGRAPH_PLAIDML_ENABLE "Enable the PlaidML backend" ${PLAIDML_FOUND})
option(NGRAPH_DISTRIBUTED_ENABLE "Enable distributed training using MLSL/OpenMPI" OFF)
option(NGRAPH_JSON_ENABLE "Enable JSON based serialization and tracing features" TRUE)
option(NGRAPH_STATIC_LIB_ENABLE "Enable build nGraph static library" FALSE)
if (NGRAPH_CPU_ENABLE
AND
......
......@@ -493,7 +493,11 @@ endif()
configure_file(version.in.hpp version.hpp)
add_library(ngraph SHARED ${SRC})
if (NGRAPH_STATIC_LIB_ENABLE)
add_library(ngraph STATIC ${SRC})
else()
add_library(ngraph SHARED ${SRC})
endif()
if(NGRAPH_DISTRIBUTED_ENABLE)
if(NGRAPH_DISTRIBUTED_MLSL_ENABLE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment