diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index aeee5824047..31603f64334 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -17,9 +17,8 @@ FILE(GLOB MAN1_FILES *.1) FILE(GLOB MAN8_FILES *.8) IF(MAN1_FILES) - INSTALL(FILES ${MAN1_FILES} DESTINATION ${INSTALL_MANDIR}/man1 - PATTERN "make_win_bin_dist.1" EXCLUDE - ) + LIST(REMOVE_ITEM MAN1_FILES "make_win_bin_dist.1" + INSTALL(FILES ${MAN1_FILES} DESTINATION ${INSTALL_MANDIR}/man1) ENDIF() IF(MAN8_FILES) INSTALL(FILES ${MAN8_FILES} DESTINATION ${INSTALL_MANDIR}/man8)