Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
f402d2f5
Unverified
Commit
f402d2f5
authored
6 years ago
by
Steve Plimpton
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1064 from junghans/cmake_fix
cmake: required v3.7 for some DOWNLOAD options
parents
044141eb
353c004d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/CMakeLists.txt
+6
-0
6 additions, 0 deletions
cmake/CMakeLists.txt
with
6 additions
and
0 deletions
cmake/CMakeLists.txt
+
6
−
0
View file @
f402d2f5
...
...
@@ -377,6 +377,9 @@ endif()
if
(
PKG_LATTE
)
option
(
DOWNLOAD_LATTE
"Download latte (instead of using the system's one)"
OFF
)
if
(
DOWNLOAD_LATTE
)
if
(
CMAKE_VERSION VERSION_LESS
"3.7"
)
# due to SOURCE_SUBDIR
message
(
FATAL_ERROR
"For downlading LATTE you need at least cmake-3.7"
)
endif
()
message
(
STATUS
"LATTE not found - we will build our own"
)
include
(
ExternalProject
)
ExternalProject_Add
(
latte_build
...
...
@@ -479,6 +482,9 @@ if(PKG_MSCG)
find_package
(
GSL REQUIRED
)
option
(
DOWNLOAD_MSCG
"Download latte (instead of using the system's one)"
OFF
)
if
(
DOWNLOAD_MSCG
)
if
(
CMAKE_VERSION VERSION_LESS
"3.7"
)
# due to SOURCE_SUBDIR
message
(
FATAL_ERROR
"For downlading LATTE you need at least cmake-3.7"
)
endif
()
include
(
ExternalProject
)
if
(
NOT LAPACK_FOUND
)
set
(
EXTRA_MSCG_OPTS
"-DLAPACK_LIBRARIES=
${
CMAKE_CURRENT_BINARY_DIR
}
/liblinalg.a"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment