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
e04bf562
Commit
e04bf562
authored
Jun 15, 2020
by
Nguyen, Thien Minh
Browse files
Fixed Linux linking for Armadillo
Signed-off-by:
Thien Nguyen
<
nguyentm@ornl.gov
>
parent
d11f95e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/plugins/algorithms/qite/CMakeLists.txt
View file @
e04bf562
...
...
@@ -49,6 +49,13 @@ else()
set_target_properties
(
${
LIBRARY_NAME
}
PROPERTIES INSTALL_RPATH
"$ORIGIN/../lib"
)
set_target_properties
(
${
LIBRARY_NAME
}
PROPERTIES LINK_FLAGS
"-shared"
)
# Armadillo solver needs LAPACK
find_package
(
LAPACK
)
if
(
LAPACK_FOUND
)
target_link_libraries
(
${
LIBRARY_NAME
}
PRIVATE
${
LAPACK_LIBRARIES
}
)
else
()
message
(
STATUS
"LAPACK NOT FOUND. QITE plugin may not work."
)
endif
()
endif
()
if
(
XACC_BUILD_TESTS
)
...
...
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