summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBevan Weiss <bevan.weiss@gmail.com>2020-08-15 19:02:44 +1000
committerDaniel Stenberg <daniel@haxx.se>2020-08-16 11:31:25 +0200
commit8ac3a5df0e0726120998218969192750326bbd20 (patch)
treedb5485f2f8c38e512015b81c3905b4c4d409625e
parentebae7d7c4a6465329360bc56d355b9d19bb3e9e6 (diff)
downloadcurl-8ac3a5df0e0726120998218969192750326bbd20.tar.gz
CMake: don't complain about missing nroff
The curl_nroff_check() was always being called, and complaining if *NROFF wasn't found, even when not making the manual. Only check for nroff (and complain) if actually making the manual Closes #5817
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6a79b0b65..68842ee3e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -225,7 +225,10 @@ if(ENABLE_IPV6 AND NOT WIN32)
endif()
endif()
-curl_nroff_check()
+if(USE_MANUAL)
+ #nroff is currently only used when USE_MANUAL is set, so we can prevent the warning of no *NROFF if USE_MANUAL is OFF (or not defined), by not even looking for NROFF..
+ curl_nroff_check()
+endif()
find_package(Perl)
cmake_dependent_option(ENABLE_MANUAL "to provide the built-in manual"