--- ./doc/CMakeLists.txt.orig 2011-03-22 14:46:50.000000000 +0100 +++ ./doc/CMakeLists.txt 2011-03-22 14:47:00.000000000 +0100 @@ -9,7 +9,7 @@ message("-- sphinx-build - not found! doc target disabled") endif() -if (NOT win32) +if (NOT win32 AND NOT NO_INSTALL_MANPAGES) file(GLOB manpages "${CMAKE_CURRENT_SOURCE_DIR}/*.1") - install(FILES ${manpages} DESTINATION share/man/man1) + install(FILES ${manpages} DESTINATION man/man1) endif()