diff --git a/cmake/README.md b/cmake/README.md
index 95b2dd7447..01b6f6a60e 100644
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -286,7 +286,16 @@ cmake -C ../cmake/presets/all_on.cmake -C ../cmake/presets/nolib.cmake -D PKG_GP
LAMMPS_MACHINE |
- allows appending a machine suffix to the generate LAMMPS binary |
+ allows appending a machine suffix to the generated LAMMPS binary |
+
+
+ - *none* (default)
+
+ |
+
+
+ LAMMPS_LIB_SUFFIX |
+ allows appending a suffix to the generated LAMMPS library |
- *none* (default)
diff --git a/doc/src/Build_basics.txt b/doc/src/Build_basics.txt
index 411e7858ac..04e11009af 100644
--- a/doc/src/Build_basics.txt
+++ b/doc/src/Build_basics.txt
@@ -235,12 +235,16 @@ running LAMMPS from Python via its library interface.
-D BUILD_EXE=value # yes (default) or no
-D BUILD_LIB=value # yes or no (default)
--D BUILD_SHARED_LIBS=value # yes or no (default) :pre
+-D BUILD_SHARED_LIBS=value # yes or no (default)
+-D LAMMPS_LIB_SUFFIX=name # name = mpi, serial, mybox, titan, laptop, etc
+ # no default value :pre
+
Setting BUILD_EXE=no will not produce an executable. Setting
BUILD_LIB=yes will produce a static library named liblammps.a.
Setting both BUILD_LIB=yes and BUILD_SHARED_LIBS=yes will produce a
-shared library named liblammps.so.
+shared library named liblammps.so. If LAMMPS_LIB_SUFFIX is set the generated
+libraries will be named liblammps_name.a or liblammps_name.so instead.
[Traditional make]:
|