From 01f2cbc33cb6d5473c9ae01cd9c842c5eb420c9b Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 22 Apr 2012 13:43:04 +0200 Subject: [PATCH] Don't install man pages on Windows they are only useful on Linux (and maybe Mac?) --- man/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 6e979570b..66bc113fb 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,3 +1,7 @@ +if (MSVC) + # don't install man pages on Windows +else(MSVC) + if(${CMAKE_VERSION} VERSION_GREATER 2.8.4) # use official include provided by latest CMake include(GNUInstallDirs) @@ -27,3 +31,5 @@ foreach(man ${MANPAGES}) install(FILES ${PROJECT_BINARY_DIR}/man/${man} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc) endforeach() + +endif(MSVC) \ No newline at end of file -- 2.39.5