From 43dc8c575275d60ac0455e3a9110d813d5348ec4 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Thu, 23 Jan 2020 14:24:11 +1300 Subject: CMake: replace PROJ_TESTS with CTest's BUILD_TESTING option * CTest automatically creates a BUILD_TESTING option (default is ON) * Also allow PROJ_TESTS to be used, but show deprecation message; and add note to remove this option by PROJ 8.0 * Only build geodtest when tests are enabled * Add documentation to configure a build using -DBUILD_TESTING=OFF --- docs/source/install.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/source') diff --git a/docs/source/install.rst b/docs/source/install.rst index 4e09a4b3..8a062b10 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -234,6 +234,10 @@ Tests are run with:: The test suite requires that the proj-datumgrid package is installed in :envvar:`PROJ_LIB`. +If tests are not required, PROJ can be built without the test suite using the following configuration:: + + cmake -DBUILD_TESTING=OFF .. + Building on Windows with vcpkg and Visual Studio 2017 or 2019 -------------------------------------------------------------------------------- -- cgit v1.2.3