
* Only build tests for proj package if required Even if tests are not explictly required to be built, proj build them anyway and tries to download Google Test. * proj: fix name of test activation flag * proj: Always set test activation flag * proj: Patch test activation logic for versions 5.x
13 lines
287 B
Diff
13 lines
287 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -159,5 +159,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)
|