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
55d8cc03
Commit
55d8cc03
authored
6 years ago
by
Christoph Junghans
Browse files
Options
Downloads
Patches
Plain Diff
cmake: add DOWNLOAD_KIM option
parent
6b73e29f
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
+7
-3
7 additions, 3 deletions
cmake/CMakeLists.txt
with
7 additions
and
3 deletions
cmake/CMakeLists.txt
+
7
−
3
View file @
55d8cc03
...
...
@@ -370,9 +370,8 @@ if(PKG_USER-VTK)
endif
()
if
(
PKG_KIM
)
find_package
(
KIM QUIET
)
if
(
NOT KIM_FOUND
)
message
(
STATUS
"KIM not found - we will build our own"
)
option
(
DOWNLOAD_KIM
"Download kim-api (instead of using the system's one)"
OFF
)
if
(
DOWNLOAD_KIM
)
include
(
ExternalProject
)
ExternalProject_Add
(
kim_build
URL https://github.com/openkim/kim-api/archive/v1.9.5.tar.gz
...
...
@@ -384,6 +383,11 @@ if(PKG_KIM)
set
(
KIM_INCLUDE_DIRS
${
INSTALL_DIR
}
/include/kim-api-v1
)
set
(
KIM_LIBRARIES
${
INSTALL_DIR
}
/lib/libkim-api-v1.so
)
list
(
APPEND LAMMPS_DEPS kim_build
)
else
()
find_package
(
KIM
)
if
(
NOT KIM_FOUND
)
message
(
FATAL_ERROR
"KIM not found, help CMake to find it by setting KIM_LIBRARY and KIM_INCLUDE_DIR, or set DOWNLOAD_KIM=ON to download it"
)
endif
()
endif
()
list
(
APPEND LAMMPS_LINK_LIBS
${
KIM_LIBRARIES
}
)
include_directories
(
${
KIM_INCLUDE_DIRS
}
)
...
...
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