aboutsummaryrefslogtreecommitdiff
path: root/cmake/ProjTest.cmake
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-05 22:55:01 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-01-05 23:50:38 +0100
commitcff5dd526edebd8aefa4405e7a9ddf7914fd79fc (patch)
tree75d10eb9111b7f2a72ff611a1d6ae8b5539a8176 /cmake/ProjTest.cmake
parent5be02bf6d1d45ac0d835c138074611843982e9e8 (diff)
downloadPROJ-cff5dd526edebd8aefa4405e7a9ddf7914fd79fc.tar.gz
PROJ-cff5dd526edebd8aefa4405e7a9ddf7914fd79fc.zip
Make sure tests pass if extra grids are present
Should fix the issue reported in https://lists.osgeo.org/pipermail/proj/2020-January/009188.html Some extra north-american grids present in data/ can affect the results of some tests, so create a data/for_tests/ subdirectory in which we copy only select grids.
Diffstat (limited to 'cmake/ProjTest.cmake')
-rw-r--r--cmake/ProjTest.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/ProjTest.cmake b/cmake/ProjTest.cmake
index ad64d0ba..81ffcd42 100644
--- a/cmake/ProjTest.cmake
+++ b/cmake/ProjTest.cmake
@@ -27,7 +27,7 @@ function(proj_add_test_script_sh SH_NAME BIN_USE)
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${${BIN_USE}}
)
set_tests_properties( ${testname}
- PROPERTIES ENVIRONMENT "PROJ_LIB=${PROJECT_BINARY_DIR}/data")
+ PROPERTIES ENVIRONMENT "PROJ_LIB=${PROJECT_BINARY_DIR}/data/for_tests")
endif()
endif()
@@ -44,7 +44,7 @@ function(proj_add_gie_test TESTNAME TESTCASE)
${TESTFILE}
)
set_tests_properties( ${TESTNAME}
- PROPERTIES ENVIRONMENT "PROJ_LIB=${PROJECT_BINARY_DIR}/data")
+ PROPERTIES ENVIRONMENT "PROJ_LIB=${PROJECT_BINARY_DIR}/data/for_tests")
endfunction()