From 3de9361405a16d5ed96d416e7456e70fa6fc897b Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Fri, 15 Nov 2024 14:13:01 +0000 Subject: [PATCH] Protect atlas_test_array_view_variant to eckit v 1.27.0 --- src/tests/array/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/array/CMakeLists.txt b/src/tests/array/CMakeLists.txt index 880e46ba6..bc44cbf68 100644 --- a/src/tests/array/CMakeLists.txt +++ b/src/tests/array/CMakeLists.txt @@ -81,8 +81,11 @@ atlas_add_hic_test( ENVIRONMENT ${ATLAS_TEST_ENVIRONMENT} ) +if(eckit_VERSION VERSION_GREATER_EQUAL 1.27.0) +# The test uses a header file from eckit "Overloaded.h" which only is available in v 1.27.0 ecbuild_add_test( TARGET atlas_test_array_view_variant SOURCES test_array_view_variant.cc LIBS atlas ENVIRONMENT ${ATLAS_TEST_ENVIRONMENT} ) +endif()