diff --git a/CMakeLists.txt b/CMakeLists.txt index 435bd1f2..8a0e95a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -484,7 +484,7 @@ endif() if(BUILD_TOOLS) add_subdirectory(tools) endif() -if(BUILD_MANPAGES) +if(BUILD_MANPAGES AND NOT MSVC) add_subdirectory(man) endif() diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 549e70a0..a8671824 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -396,7 +396,7 @@ if(GZIP_PATH) install(FILES ${PROJECT_BINARY_DIR}/man/${DST}.3.gz DESTINATION "${CMAKE_INSTALL_MANDIR}/man3") endforeach() -elseif(NOT MSVC) +else() add_dependencies(man man_symlink) foreach(f ${MAN_SOURCES}) if (${f} MATCHES ".1$")