summaryrefslogtreecommitdiff
path: root/math/polyclipper/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-12-03 13:55:34 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2022-12-03 13:56:55 -0800
commit0dce9995e60532c01b84c3fc0b008ce017811f36 (patch)
tree9fe7b84154fea83090b7d899e43ba4c1eb36f74e /math/polyclipper/files/patch-CMakeLists.txt
parentgames/acm: Deprecate. (diff)
math/polyclipper: New port: Library to clip polygons (in 2D) and polyhedra (in 3D) by planes
Diffstat (limited to 'math/polyclipper/files/patch-CMakeLists.txt')
-rw-r--r--math/polyclipper/files/patch-CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/math/polyclipper/files/patch-CMakeLists.txt b/math/polyclipper/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..24c560204f66
--- /dev/null
+++ b/math/polyclipper/files/patch-CMakeLists.txt
@@ -0,0 +1,32 @@
+--- CMakeLists.txt.orig 2021-12-29 18:25:59 UTC
++++ CMakeLists.txt
+@@ -22,18 +22,18 @@ option(ENABLE_DOCS "enable the sphinx documentation" O
+ #-------------------------------------------------------------------------------
+ set(ENABLE_OPENMP ON CACHE BOOL "")
+
+-if (NOT POLYCLIPPER_BLT_DIR)
++if (FALSE AND NOT POLYCLIPPER_BLT_DIR)
+ set (POLYCLIPPER_BLT_REL_DIR "${PROJECT_SOURCE_DIR}/cmake/blt" CACHE PATH "")
+ get_filename_component(POLYCLIPPER_BLT_DIR "${POLYCLIPPER_BLT_REL_DIR}" ABSOLUTE)
+ endif()
+
+-if (NOT EXISTS "${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake")
++if (FALSE AND NOT EXISTS "${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake")
+ message(FATAL_ERROR
+ "${POLYCLIPPER_BLT_DIR} is not present.\n"
+ "call cmake with -DPOLYCLIPPER_BLT_DIR=/your/installation/of/blt\n")
+ endif()
+
+-include(${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake)
++#include(${POLYCLIPPER_BLT_DIR}/SetupBLT.cmake)
+
+ #-------------------------------------------------------------------------------
+ # Install
+@@ -118,4 +118,6 @@ endif()
+ #-------------------------------------------------------------------------------
+ # Add any tests
+ #-------------------------------------------------------------------------------
+-add_subdirectory(test/test_array_vector)
++if (BUILD_TESTING)
++ add_subdirectory(test/test_array_vector)
++endif()