Skip to content

Commit

Permalink
CMake: Don't complain about missing nroff
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bevanweiss committed Aug 15, 2020
1 parent d491916 commit 58e83d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 not _FILE_OFFSET_BITS, by not even looking for NROFF..
curl_nroff_check()
endif()
find_package(Perl)

cmake_dependent_option(ENABLE_MANUAL "to provide the built-in manual"
Expand Down

0 comments on commit 58e83d2

Please sign in to comment.