lammps-example-plugin: add new versions, fix bug (#46331)
This commit is contained in:
parent
0cb4db950f
commit
176b7f8854
@ -26,6 +26,11 @@ class LammpsExamplePlugin(CMakePackage):
|
||||
# marked deprecated=True
|
||||
# * patch releases older than a stable release should be marked deprecated=True
|
||||
version("develop", branch="develop")
|
||||
version(
|
||||
"20240829",
|
||||
sha256="6112e0cc352c3140a4874c7f74db3c0c8e30134024164509ecf3772b305fde2e",
|
||||
preferred=True,
|
||||
)
|
||||
version("20240627", sha256="2174a99d266279823a8c57629ee1c21ec357816aefd85f964d9f859fe9222aa5")
|
||||
version("20240417", sha256="158b288725c251fd8b30dbcf61749e0d6a042807da92af865a7d3c413efdd8ea")
|
||||
version(
|
||||
@ -38,9 +43,10 @@ class LammpsExamplePlugin(CMakePackage):
|
||||
)
|
||||
version("20231121", sha256="704d8a990874a425bcdfe0245faf13d712231ba23f014a3ebc27bc14398856f1")
|
||||
version(
|
||||
"20230802.3",
|
||||
sha256="6666e28cb90d3ff01cbbda6c81bdb85cf436bbb41604a87f2ab2fa559caa8510",
|
||||
preferred=True,
|
||||
"20230802.4", sha256="6eed007cc24cda80b5dd43372b2ad4268b3982bb612669742c8c336b79137b5b"
|
||||
)
|
||||
version(
|
||||
"20230802.3", sha256="6666e28cb90d3ff01cbbda6c81bdb85cf436bbb41604a87f2ab2fa559caa8510"
|
||||
)
|
||||
|
||||
depends_on("cxx", type="build")
|
||||
@ -59,7 +65,7 @@ def url_for_version(self, version):
|
||||
update,
|
||||
)
|
||||
|
||||
depends_on("lammps+plugin+lib")
|
||||
depends_on("lammps+plugin+lib+openmp-package")
|
||||
|
||||
root_cmakelists_dir = "examples/plugins"
|
||||
|
||||
@ -67,7 +73,7 @@ def patch(self):
|
||||
with open("examples/plugins/CMakeLists.txt", "a") as f:
|
||||
print("include(GNUInstallDirs)", file=f)
|
||||
print(
|
||||
"install(TARGETS morse2plugin nve2plugin helloplugin zero2plugin morse2plugin"
|
||||
"install(TARGETS morse2plugin nve2plugin helloplugin zero2plugin morse2plugin "
|
||||
"LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/lammps/plugins)",
|
||||
file=f,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user