Commit 2da47584 authored by pruthvi's avatar pruthvi

- fix python API failure in CI

parent a5ea18b1
......@@ -164,7 +164,9 @@ if (NGRAPH_CPU_ENABLE)
set(NGRAPH_CPU_DEBUGINFO_ENABLE 0 CACHE STRING "Enable debuginfo in the CPU backend")
add_library(cpu_backend ${LIBRARY_TYPE} ${SRC})
target_compile_definitions(cpu_backend PUBLIC NGRAPH_CPU_STATIC_LIB_ENABLE)
if (NGRAPH_CPU_STATIC_LIB_ENABLE)
target_compile_definitions(cpu_backend PRIVATE "NGRAPH_CPU_STATIC_LIB_ENABLE")
endif()
if(NGRAPH_LIB_VERSIONING_ENABLE)
set_target_properties(cpu_backend PROPERTIES
VERSION ${NGRAPH_VERSION}
......
......@@ -51,7 +51,7 @@ runtime::BackendConstructor* runtime::cpu::get_backend_constructor_pointer()
return s_backend_constructor.get();
}
#ifndef NGRAPH_CPU_STATIC_LIB_ENABLE
#if !defined(NGRAPH_CPU_STATIC_LIB_ENABLE)
extern "C" runtime::BackendConstructor* get_backend_constructor_pointer()
{
return runtime::cpu::get_backend_constructor_pointer();
......
......@@ -28,8 +28,9 @@ if (NGRAPH_INTERPRETER_ENABLE)
SOVERSION ${NGRAPH_API_VERSION})
endif()
target_link_libraries(interpreter_backend PUBLIC ngraph)
target_compile_definitions(interpreter_backend PUBLIC NGRAPH_INTERPRETER_STATIC_LIB_ENABLE)
if(NGRAPH_INTERPRETER_STATIC_LIB_ENABLE)
target_compile_definitions(interpreter_backend PUBLIC NGRAPH_INTERPRETER_STATIC_LIB_ENABLE)
endif()
install(TARGETS interpreter_backend
LIBRARY DESTINATION "${NGRAPH_INSTALL_LIB}"
ARCHIVE DESTINATION "${NGRAPH_INSTALL_LIB}"
......
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