diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 96f066a431088a074f37af0dde684d419fbfc9c6..4db879b5b1c29d67ebb8986709a4e4b7ffa7d410 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1058,7 +1058,7 @@ if(BUILD_EXE) set_target_properties(lmp PROPERTIES OUTPUT_NAME lmp${LAMMPS_MACHINE}) install(TARGETS lmp DESTINATION ${CMAKE_INSTALL_BINDIR}) - install(FILES ${LAMMPS_DOC_DIR}/lammps.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) + install(FILES ${LAMMPS_DOC_DIR}/lammps.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 RENAME lmp${LAMMPS_MACHINE}.1) if(ENABLE_TESTING) add_test(ShowHelp lmp${LAMMPS_MACHINE} -help) endif()