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