Commit e04bf562 authored by Nguyen, Thien's avatar Nguyen, Thien
Browse files

Fixed Linux linking for Armadillo


Signed-off-by: Nguyen, Thien's avatarThien Nguyen <nguyentm@ornl.gov>
parent d11f95e5
...@@ -49,6 +49,13 @@ else() ...@@ -49,6 +49,13 @@ else()
set_target_properties(${LIBRARY_NAME} set_target_properties(${LIBRARY_NAME}
PROPERTIES INSTALL_RPATH "$ORIGIN/../lib") PROPERTIES INSTALL_RPATH "$ORIGIN/../lib")
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-shared") 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() endif()
if(XACC_BUILD_TESTS) if(XACC_BUILD_TESTS)
......
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