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
1185fb48
Commit
1185fb48
authored
Jul 10, 2019
by
Rob Earhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly set target properties
parent
147b07cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
CMakeLists.txt
src/ngraph/runtime/plaidml/CMakeLists.txt
+8
-8
No files found.
src/ngraph/runtime/plaidml/CMakeLists.txt
View file @
1185fb48
...
...
@@ -13,14 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
set
(
CMAKE_MACOSX_RPATH 1
)
if
(
APPLE
)
set
(
CMAKE_INSTALL_RPATH
"@loader_path/;@loader_path/../../.."
)
elseif
(
DEFINED NGRAPH_RPATH
)
set
(
CMAKE_INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../../;
${
NGRAPH_RPATH
}
"
)
else
()
set
(
CMAKE_INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../../"
)
endif
()
set
(
SRC
plaidml_backend.cpp
...
...
@@ -83,3 +75,11 @@ target_include_directories(plaidml_backend SYSTEM PUBLIC ${PLAIDML_INCLUDE_DIRS}
target_link_libraries
(
plaidml_backend PUBLIC ngraph libplaidml
)
install
(
TARGETS plaidml_backend LIBRARY DESTINATION
${
NGRAPH_INSTALL_LIB
}
)
set
(
CMAKE_MACOSX_RPATH 1
)
if
(
APPLE
)
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"@loader_path/;@loader_path/../../.."
)
elseif
(
DEFINED NGRAPH_RPATH
)
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../..;
${
NGRAPH_RPATH
}
"
)
else
()
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../.."
)
endif
()
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