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() ######################################################