Cmake: Modules: fix build with no doc
@@ -503,6 +503,7 @@ endmacro()
function (generate_manpage NAME)
+ if (BUILD_DOCUMENTATION)
cmake_parse_arguments (ARG
"" # optional keywords
"SECTION;FILENAME" # one value keywords
@@ -540,6 +541,7 @@ function (generate_manpage NAME)
DESTINATION share/man/man${SECTION}
)
endif ()
+ endif (BUILD_DOCUMENTATION)
endfunction ()
