Skip to content

Commit 7f2c622

Browse files
Applies @mgates3 patch to fix BLAS++ and LAPACK++ installation
Reference-LAPACK#903 (review)
1 parent b50109c commit 7f2c622

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -633,21 +633,19 @@ install(FILES
633633

634634
if (LAPACK++)
635635
install(
636-
DIRECTORY "${LAPACK_BINARY_DIR}/lib/"
636+
DIRECTORY "${LAPACK_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/"
637637
DESTINATION ${CMAKE_INSTALL_LIBDIR}
638638
FILES_MATCHING REGEX "lapackpp"
639639
)
640640
endif()
641641

642-
if (BLAS++)
642+
if (BLAS++ OR LAPACK++)
643643
install(
644-
DIRECTORY "${LAPACK_BINARY_DIR}/lib/"
644+
DIRECTORY "${LAPACK_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/"
645645
DESTINATION ${CMAKE_INSTALL_LIBDIR}
646646
FILES_MATCHING REGEX "blaspp"
647647
)
648-
endif()
649648

650-
if (BLAS++ OR LAPACK++)
651649
install(
652650
DIRECTORY "${LAPACK_BINARY_DIR}/include/"
653651
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"

0 commit comments

Comments
 (0)