ports/graphics/py-h3/files/patch-CMakeLists.txt
Po-Chuan Hsieh 1d003c1864
graphics/py-h3: Update to 3.7.6
- Convert to USE_PYTHON=pytest

Changes:	https://github.com/uber/h3-py/releases
2023-01-30 20:59:16 +08:00

31 lines
973 B
Text

--- CMakeLists.txt.orig 2022-11-24 19:38:22 UTC
+++ CMakeLists.txt
@@ -6,28 +6,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Always make a release build
set(CMAKE_BUILD_TYPE Release)
-# Avoid building tooling we won't need for release
-# See all options with `cmake -LA` in an `h3/build` directory,
-# or at https://h3geo.org/docs/next/core-library/compilation-options/
-macro(turn_off option_name)
- set(${option_name} OFF CACHE BOOL "" FORCE)
-endmacro()
-turn_off(BUILD_ALLOC_TESTS)
-turn_off(BUILD_BENCHMARKS)
-turn_off(BUILD_FILTERS)
-turn_off(BUILD_FUZZERS)
-turn_off(BUILD_GENERATORS)
-turn_off(BUILD_TESTING)
-turn_off(ENABLE_COVERAGE)
-turn_off(ENABLE_DOCS)
-turn_off(ENABLE_FORMAT)
-turn_off(ENABLE_LIBFUZZER)
-turn_off(ENABLE_LINTING)
-
-# Build the core library as static
-set(BUILD_SHARED_LIBS OFF)
-add_subdirectory(src/h3lib)
-
# Build the rest (other than the core library dependency) as shared
set(BUILD_SHARED_LIBS ON)
add_subdirectory(src/h3)