Opened 4 years ago

Closed 4 years ago

Last modified 13 months ago

#1006 closed defect (fixed)

CMake build without tests regression

Reported by: Mike Taves Owned by: geos-devel@…
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.

Change History (3)

comment:1 by Mike Taves, 4 years ago

comment:2 by Daniel Baston <dbaston@…>, 4 years ago

Resolution: fixed
Status: newclosed

In fbb1804/git:

Fix CMake build without tests

Fixes #1006

comment:3 by Mike Taves <mwtoews@…>, 13 months ago

In ccb2f0f/git:

Fix CMake build without tests

Fixes #1006

Note: See TracTickets for help on using tickets.