From 166f0cb5eaa0834c2a2f7eb72e707da0b845ff7b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 5 Oct 2024 01:04:26 -0400 Subject: [PATCH] print warning only when package selected --- cmake/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 7ff8eb6abf..cbc8a100fb 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -364,11 +364,13 @@ endforeach() set(DEPRECATED_PACKAGES AWPMD ATC POEMS) foreach(PKG ${DEPRECATED_PACKAGES}) - message(WARNING + if(PKG_${PKG}) + message(WARNING "The ${PKG} package will be removed from LAMMPS in Summer 2025 due to lack of " "maintenance and use of code constructs that conflict with modern C++ compilers " "and standards. Please contact developers@lammps.org if you have any concerns " "about this step.") + endif() endforeach() ######################################################