Commit 420a6ea4 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fixing relocatable on Linux with ORIGIN


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 351143c6
...@@ -53,7 +53,11 @@ if (NOT cppus_has_d_suffix) ...@@ -53,7 +53,11 @@ if (NOT cppus_has_d_suffix)
endif() endif()
target_link_libraries(pyxacc PRIVATE xacc xacc-quantum-gate xacc-quantum-aqc ${CppUsLib} ${Boost_LIBRARIES} cpprest ${OPENSSL_LIBRARIES}) 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) if (FROM_SETUP_PY)
install(TARGETS pyxacc DESTINATION ${CMAKE_INSTALL_PREFIX}) install(TARGETS pyxacc DESTINATION ${CMAKE_INSTALL_PREFIX})
......
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