summaryrefslogtreecommitdiff
path: root/textproc/cpp-peglib/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-04-23 21:41:48 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2021-04-23 21:41:48 -0700
commit4f891b0688d48dce9e0c658961d78894a604deaa (patch)
treeae072ebd3003cc7ae4570641bc29fd5f563c4ac1 /textproc/cpp-peglib/files/patch-CMakeLists.txt
parentwww/cpp-httplib: Update 0.8.7 -> 0.8.8 (diff)
New port: textproc/cpp-peglib: C++ header-only PEG (Parsing Expression Grammars) library
Diffstat (limited to 'textproc/cpp-peglib/files/patch-CMakeLists.txt')
-rw-r--r--textproc/cpp-peglib/files/patch-CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/textproc/cpp-peglib/files/patch-CMakeLists.txt b/textproc/cpp-peglib/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..dfb2b7ffb390
--- /dev/null
+++ b/textproc/cpp-peglib/files/patch-CMakeLists.txt
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig 2021-03-31 01:03:42 UTC
++++ CMakeLists.txt
+@@ -17,10 +17,16 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ set(add_link_deps Threads::Threads)
+ endif()
+
++if (FREEBSD_BUILD_EXAMPLES)
+ add_subdirectory(example)
++endif()
++if (FREEBSD_BUILD_LINT)
+ add_subdirectory(lint)
++endif()
+
++if (FREEBSD_BUILD_TESTS)
+ add_subdirectory(test)
+ enable_testing()
++endif()
+
+ install(FILES peglib.h DESTINATION include)