print warning only when package selected

This commit is contained in:
Axel Kohlmeyer
2024-10-05 01:04:26 -04:00
parent 0ed18c1203
commit 166f0cb5ea

View File

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