Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
420a6ea4
Commit
420a6ea4
authored
Mar 27, 2018
by
Mccaskey, Alex
Browse files
fixing relocatable on Linux with ORIGIN
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
351143c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
420a6ea4
...
...
@@ -53,7 +53,11 @@ if (NOT cppus_has_d_suffix)
endif
()
target_link_libraries
(
pyxacc PRIVATE xacc xacc-quantum-gate xacc-quantum-aqc
${
CppUsLib
}
${
Boost_LIBRARIES
}
cpprest
${
OPENSSL_LIBRARIES
}
)
set_target_properties
(
pyxacc PROPERTIES INSTALL_RPATH
"@loader_path/lib"
)
if
(
APPLE
)
set_target_properties
(
pyxacc PROPERTIES INSTALL_RPATH
"@loader_path/lib"
)
else
()
set_target_properties
(
pyxacc PROPERTIES INSTALL_RPATH
"$ORIGIN/lib"
)
endif
()
if
(
FROM_SETUP_PY
)
install
(
TARGETS pyxacc DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
...
...
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