Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
1df4cc36
Commit
1df4cc36
authored
Jan 07, 2019
by
Artur Wojcik
Committed by
Scott Cyphers
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[onnx] fix building while NGRAPH_ONNXIFI_ENABLE is off (#2286)
Signed-off-by:
Artur Wojcik
<
artur.wojcik@intel.com
>
parent
dee4a8b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
CMakeLists.txt
CMakeLists.txt
+3
-5
CMakeLists.txt
src/ngraph/frontend/onnx_import/CMakeLists.txt
+1
-5
No files found.
CMakeLists.txt
View file @
1df4cc36
...
...
@@ -301,11 +301,9 @@ if (NGRAPH_ONNX_IMPORT_ENABLE)
else
()
find_package
(
Protobuf 2.6.1 REQUIRED
)
endif
()
if
(
NGRAPH_ONNXIFI_ENABLE
)
include
(
cmake/external_onnx.cmake
)
if
(
TARGET ext_protobuf
)
add_dependencies
(
ext_onnx ext_protobuf
)
endif
()
include
(
cmake/external_onnx.cmake
)
if
(
TARGET ext_protobuf
)
add_dependencies
(
ext_onnx ext_protobuf
)
endif
()
endif
()
...
...
src/ngraph/frontend/onnx_import/CMakeLists.txt
View file @
1df4cc36
...
...
@@ -160,13 +160,9 @@ add_library(onnx_import STATIC
set
(
ONNX_IMPORT_INCLUDE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
CACHE INTERNAL
""
)
add_dependencies
(
onnx_import_interface onnx::libonnx onnx::libonnx_proto
)
add_dependencies
(
onnx_import onnx_import_interface
)
if
(
NOT NGRAPH_USE_SYSTEM_PROTOBUF
)
add_dependencies
(
onnx_import_interface protobuf::libprotobuf
)
add_dependencies
(
onnx_import_interface onnx::libonnx_proto
)
endif
()
set_property
(
TARGET onnx_import PROPERTY POSITION_INDEPENDENT_CODE ON
)
target_include_directories
(
onnx_import PRIVATE
${
ONNX_IMPORT_INCLUDE_DIR
}
${
NGRAPH_INCLUDE_PATH
}
SYSTEM PRIVATE
${
ONNX_INCLUDE_DIR
}
${
ONNX_PROTO_INCLUDE_DIR
}
${
Protobuf_INCLUDE_DIR
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment