File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ if (MODBUSPP_WITH_DOXYGEN_DOC)
6969 add_custom_target (doc )
7070 add_dependencies (doc main_page.dox html)
7171
72- file (GLOB manpages ${CMAKE_BINARY_DIR} /man/man3/Modbus_*.3)
7372 #message("MODBUSPP_INSTALL_DOC_DIR=${MODBUSPP_INSTALL_DOC_DIR}")
7473 #message("INSTALL_DATA_DIR=${INSTALL_DATA_DIR}")
7574
@@ -78,8 +77,10 @@ if (MODBUSPP_WITH_DOXYGEN_DOC)
7877 DESTINATION ${MODBUSPP_INSTALL_DOC_DIR} /api-manual COMPONENT doc )
7978
8079 # manpages
81- install (FILES ${manpages}
82- DESTINATION "${INSTALL_DATA_DIR} /man/man3" COMPONENT doc )
80+ install (DIRECTORY ${CMAKE_BINARY_DIR} /man/
81+ DESTINATION ${INSTALL_DATA_DIR} /man
82+ COMPONENT doc
83+ FILES_MATCHING PATTERN "Modbus_*.3" )
8384
8485 # Examples
8586 install (DIRECTORY ${PROJECT_SOURCE_DIR} /examples/
You can’t perform that action at this time.
0 commit comments