Skip to content

Commit

Permalink
maybe with coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Dec 2, 2023
1 parent 691c8c2 commit 269dc52
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ option(GEOARROW_GEOS_CODE_COVERAGE "Enable coverage reporting" OFF)

add_library(geoarrow_geos_coverage_config INTERFACE)

if(GEOARROW_GEOS_CODE_COVERAGE)
target_compile_options(geoarrow_geos_coverage_config INTERFACE -O0 -g
--coverage)
target_link_options(geoarrow_geos_coverage_config INTERFACE --coverage)
endif()

# Ensure geoarrow_c
FetchContent_Declare(
geoarrow_c
Expand Down Expand Up @@ -85,9 +91,6 @@ if(GEOARROW_GEOS_BUILD_TESTS)
add_executable(geoarrow_geos_test src/geoarrow_geos/geoarrow_geos_test.cc)

if(GEOARROW_CODE_COVERAGE)
target_compile_options(geoarrow_geos_coverage_config INTERFACE -O0 -g
--coverage)
target_link_options(geoarrow_geos_coverage_config INTERFACE --coverage)
target_link_libraries(geoarrow_geos geoarrow_geos_coverage_config)
endif()

Expand Down

0 comments on commit 269dc52

Please sign in to comment.