Merge commit 'refs/pull/1950/head' of github.com:lammps/lammps into atc-doc-to-rst

This commit is contained in:
Axel Kohlmeyer
2020-03-19 16:08:18 -04:00

View File

@ -262,8 +262,8 @@ if(PKG_MSCG OR PKG_USER-ATC OR PKG_USER-AWPMD OR PKG_USER-QUIP OR PKG_LATTE)
enable_language(Fortran)
file(GLOB LAPACK_SOURCES ${LAMMPS_LIB_SOURCE_DIR}/linalg/[^.]*.[fF])
add_library(linalg STATIC ${LAPACK_SOURCES})
set(BLAS_LIBRARIES "${CMAKE_BINARY_DIR}/liblinalg.a")
set(LAPACK_LIBRARIES "${CMAKE_BINARY_DIR}/liblinalg.a")
set(BLAS_LIBRARIES "$<TARGET_FILE:linalg>")
set(LAPACK_LIBRARIES "$<TARGET_FILE:linalg>")
else()
list(APPEND LAPACK_LIBRARIES ${BLAS_LIBRARIES})
endif()