aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2020-01-23 14:24:11 +1300
committerMike Taves <mwtoews@gmail.com>2020-01-24 20:26:53 +1300
commit43dc8c575275d60ac0455e3a9110d813d5348ec4 (patch)
treeba6313a1c8c92d70a8c1a8107438b98b6d1cda6a /src/CMakeLists.txt
parentdb31b6dfa9c8fe37d5706d95ce81012b8db3c3b9 (diff)
downloadPROJ-43dc8c575275d60ac0455e3a9110d813d5348ec4.tar.gz
PROJ-43dc8c575275d60ac0455e3a9110d813d5348ec4.zip
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
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 48c785a5..8cf57306 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -51,7 +51,9 @@ endif()
if(BUILD_GEOD)
include(bin_geod.cmake)
- include(bin_geodtest.cmake)
+ if(BUILD_TESTING)
+ include(bin_geodtest.cmake)
+ endif()
set(BIN_TARGETS ${BIN_TARGETS} geod)
endif()