diff --git a/CMakeLists.txt b/CMakeLists.txt index 17609c05d8..89db6a8663 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -633,21 +633,19 @@ install(FILES if (LAPACK++) install( - DIRECTORY "${LAPACK_BINARY_DIR}/lib/" + DIRECTORY "${LAPACK_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/" DESTINATION ${CMAKE_INSTALL_LIBDIR} FILES_MATCHING REGEX "lapackpp" ) endif() -if (BLAS++) +if (BLAS++ OR LAPACK++) install( - DIRECTORY "${LAPACK_BINARY_DIR}/lib/" + DIRECTORY "${LAPACK_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/" DESTINATION ${CMAKE_INSTALL_LIBDIR} FILES_MATCHING REGEX "blaspp" ) -endif() -if (BLAS++ OR LAPACK++) install( DIRECTORY "${LAPACK_BINARY_DIR}/include/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"