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
ce7f76de
Commit
ce7f76de
authored
6 years ago
by
Christoph Junghans
Browse files
Options
Downloads
Patches
Plain Diff
cmake: switch plumed to full static mode
parent
58d2f0cc
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
-3
6 additions, 3 deletions
cmake/CMakeLists.txt
with
6 additions
and
3 deletions
cmake/CMakeLists.txt
+
6
−
3
View file @
ce7f76de
...
...
@@ -528,6 +528,7 @@ if(PKG_USER-SCAFACOS)
endif
()
if
(
PKG_USER-PLUMED
)
find_package
(
GSL REQUIRED
)
option
(
DOWNLOAD_PLUMED
"Download Plumed (instead of using the system's one)"
OFF
)
if
(
DOWNLOAD_PLUMED
)
include
(
ExternalProject
)
...
...
@@ -540,12 +541,14 @@ if(PKG_USER-PLUMED)
ExternalProject_get_property
(
plumed_build INSTALL_DIR
)
set
(
PLUMED_INSTALL_DIR
${
INSTALL_DIR
}
)
list
(
APPEND LAMMPS_DEPS plumed_build
)
list
(
APPEND LAMMPS_LINK_LIBS
${
PLUMED_INSTALL_DIR
}
/lib/libplumedWrapper.a
${
CMAKE_DL_LIBS
}
)
list
(
APPEND LAMMPS_LINK_LIBS
${
PLUMED_INSTALL_DIR
}
/lib/plumed/obj/kernel.o
${
PLUMED_INSTALL_DIR
}
/lib/plumed/obj/PlumedStatic.o
${
GSL_LIBRARIES
}
${
CMAKE_DL_LIBS
}
)
set
(
PLUMED_INCLUDE_DIRS
"
${
PLUMED_INSTALL_DIR
}
/include"
)
else
()
find_package
(
PkgConfig REQUIRED
)
pkg_check_modules
(
PLUMED plumedWrapper REQUIRED
)
list
(
APPEND LAMMPS_LINK_LIBS
${
PLUMED_LDFLAGS
}
)
pkg_check_modules
(
PLUMED plumed REQUIRED
)
include
(
${
PLUMED_LIBDIR
}
/plumed/src/lib/Plumed.cmake.static
)
list
(
APPEND LAMMPS_LINK_LIBS
${
PLUMED_LOAD
}
)
endif
()
include_directories
(
${
PLUMED_INCLUDE_DIRS
}
)
endif
()
...
...
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