From cff5dd526edebd8aefa4405e7a9ddf7914fd79fc Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 5 Jan 2020 22:55:01 +0100 Subject: 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. --- cmake/ProjTest.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/ProjTest.cmake') 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() -- cgit v1.2.3