#1006 closed defect (fixed)
CMake build without tests regression
Reported by: | Mike Taves | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Build/Install (cmake) | Version: | main |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
Prior to GEOS 3.8.0, building tests could be disabled using:
cmake -DCMAKE_BUILD_TYPE=Release -DGEOS_ENABLE_TESTS=OFF ..
With the modern CMake setup for GEOS 3.8.0 (nice work, btw!) this should be done using:
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF ..
however:
CMake Error at doc/CMakeLists.txt:16 (target_include_directories): Cannot specify include directories for target "test_geos_unit" which is not built by this project.
Note:
See TracTickets
for help on using tickets.
See fix with GitHub PR https://github.com/libgeos/geos/pull/251