aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConlan Cesar <HeroCC@users.noreply.github.com>2019-08-05 10:28:33 -0400
committerGitHub <noreply@github.com>2019-08-05 10:28:33 -0400
commit166c215fc8016f6359f63d749cb3ff06f612692c (patch)
treef44fc99f92d22da3521771d04c5a83152647424e
parentec2193939928bae8b8149e777ce0fd86eb57190a (diff)
downloadPROJ-166c215fc8016f6359f63d749cb3ff06f612692c.tar.gz
PROJ-166c215fc8016f6359f63d749cb3ff06f612692c.zip
Fix tests still running despite being disabled
This fix was included in release 6.0, simple backport to 5.2.
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b100e62f..98b2c533 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -164,5 +164,6 @@ add_subdirectory(nad)
add_subdirectory(src)
add_subdirectory(man)
add_subdirectory(cmake)
-add_subdirectory(test)
-
+if(PROJ_TESTS)
+ add_subdirectory(test)
+endif(PROJ_TESTS)