Unverified Commit ebd6904c authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

revert exclude from all on directory to get codegen library to install (#1482)

parent bc2138d1
......@@ -186,7 +186,7 @@ endif()
include_directories("${NGRAPH_INCLUDE_PATH}")
add_subdirectory(codegen EXCLUDE_FROM_ALL)
add_subdirectory(codegen)
add_subdirectory(runtime)
add_library(ngraph SHARED ${SRC})
......
......@@ -69,9 +69,11 @@ add_custom_target(header_resource
BYPRODUCTS
)
add_library(codegen SHARED ${SRC})
set_target_properties(codegen PROPERTIES VERSION ${NGRAPH_VERSION} SOVERSION ${NGRAPH_API_VERSION})
add_dependencies(codegen header_resource libmkldnn libeigen)
target_include_directories(codegen SYSTEM PUBLIC ${CMAKE_BINARY_DIR})
target_link_libraries(codegen PRIVATE libllvm ngraph)
install(TARGETS codegen DESTINATION ${NGRAPH_INSTALL_LIB})
if (NGRAPH_GPU_ENABLE OR (NGRAPH_CPU_ENABLE AND NOT NGRAPH_DEX_ONLY))
add_library(codegen SHARED ${SRC})
set_target_properties(codegen PROPERTIES VERSION ${NGRAPH_VERSION} SOVERSION ${NGRAPH_API_VERSION})
add_dependencies(codegen header_resource libmkldnn libeigen)
target_include_directories(codegen SYSTEM PUBLIC ${CMAKE_BINARY_DIR})
target_link_libraries(codegen PRIVATE libllvm ngraph)
install(TARGETS codegen DESTINATION ${NGRAPH_INSTALL_LIB})
endif()
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