Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
Applications
LAMMPS
Commits
413fdbbf
Unverified
Commit
413fdbbf
authored
Aug 24, 2018
by
Steve Plimpton
Committed by
GitHub
Aug 24, 2018
Browse files
Merge pull request #1080 from junghans/as-needed-fix
cmake: fix link issue with --as-needed
parents
1c4d68a9
a10bb4b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/CMakeLists.txt
View file @
413fdbbf
...
...
@@ -276,11 +276,14 @@ endif()
if
(
PKG_MSCG OR PKG_USER-ATC OR PKG_USER-AWPMD OR PKG_USER-QUIP OR PKG_LATTE
)
find_package
(
LAPACK
)
if
(
NOT LAPACK_FOUND
)
find_package
(
BLAS
)
if
(
NOT LAPACK_FOUND OR NOT BLAS_FOUND
)
enable_language
(
Fortran
)
file
(
GLOB LAPACK_SOURCES
${
LAMMPS_LIB_SOURCE_DIR
}
/linalg/*.[fF]
)
add_library
(
linalg STATIC
${
LAPACK_SOURCES
}
)
set
(
LAPACK_LIBRARIES linalg
)
else
()
list
(
APPEND LAPACK_LIBRARIES
${
BLAS_LIBRARIES
}
)
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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