Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/astro/geographiclib/files/patch-CMakeLists.txt
16130 views
1
--- CMakeLists.txt.orig 2020-11-22 14:00:22 UTC
2
+++ CMakeLists.txt
3
@@ -183,6 +183,11 @@ option (APPLE_MULTIPLE_ARCHITECTURES
4
# directory is present you get this behavior regardless.
5
option (CONVERT_WARNINGS_TO_ERRORS "Convert warnings into errors?" OFF)
6
7
+# (12) Allow perl usage to be explicitly disabled. It might exist on the
8
+# system, but the user may not necessarily want it to be used for one reason
9
+# or another.
10
+option (GEOGRAPHICLIB_NO_PERL "Disable usage of pod2man and pod2html" OFF)
11
+
12
set (LIBNAME Geographic)
13
if (MSVC OR CMAKE_CONFIGURATION_TYPES)
14
# For multi-config systems and for Visual Studio, the debug version of
15
@@ -434,7 +439,7 @@ endif ()
16
# documentation files into the source tree. Skip Apple here because
17
# man/makeusage.sh uses "head --lines -4" to drop the last 4 lines of a
18
# file and there's no simple equivalent for MacOSX
19
-if (NOT WIN32 AND NOT APPLE)
20
+if (NOT WIN32 AND NOT APPLE AND NOT GEOGRAPHICLIB_NO_PERL)
21
find_program (HAVE_POD2MAN pod2man)
22
find_program (HAVE_POD2HTML pod2html)
23
find_program (HAVE_COL col)
24
25