Skip to content
GitLab
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
e9abb825
Commit
e9abb825
authored
Apr 16, 2018
by
Mccaskey, Alex
Browse files
fixing mac link_flags python error
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
15cc260e
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
e9abb825
...
...
@@ -9,9 +9,6 @@ message(STATUS "C++ version ${CXX_STANDARD} configured.")
set
(
CMAKE_INSTALL_RPATH
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
set
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
#find_package(PythonLibs)
#if(PythonLibs_FOUND)
set
(
CppMicroServices_DIR
"
${
CPPUS_LIBRARY_DIR
}
/../share/cppmicroservices3/cmake"
)
# Modify our CMAKE_MODULE_PATH
...
...
@@ -55,11 +52,10 @@ target_link_libraries(pyxacc xacc xacc-quantum-gate xacc-quantum-aqc CppMicroSer
if
(
APPLE
)
set_target_properties
(
pyxacc PROPERTIES INSTALL_RPATH
"@loader_path/lib"
)
set_target_properties
(
pyxacc PROPERTIES L
D
FLAGS
"-undefined dynamic_lookup"
)
set_target_properties
(
pyxacc PROPERTIES L
INK_
FLAGS
"-undefined dynamic_lookup"
)
else
()
set_target_properties
(
pyxacc PROPERTIES INSTALL_RPATH
"$ORIGIN/lib;$ORIGIN/plugins"
)
set_target_properties
(
pyxacc PROPERTIES L
D
FLAGS
"-shared"
)
set_target_properties
(
pyxacc PROPERTIES L
INK_
FLAGS
"-shared"
)
endif
()
install
(
TARGETS pyxacc DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
#endif()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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