From 0da598023251ba3ee49d9176550f015677a4d951 Mon Sep 17 00:00:00 2001 From: Chris Bradley Date: Wed, 7 Aug 2024 12:10:15 +0000 Subject: [PATCH] Fix attempting to generate auxiliary test when fdb-tools are disabled --- tests/fdb/tools/auxiliary/CMakeLists.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/fdb/tools/auxiliary/CMakeLists.txt b/tests/fdb/tools/auxiliary/CMakeLists.txt index 6f4df74e5..aa8fcd9cf 100644 --- a/tests/fdb/tools/auxiliary/CMakeLists.txt +++ b/tests/fdb/tools/auxiliary/CMakeLists.txt @@ -1,6 +1,9 @@ -ecbuild_configure_file( move_auxiliary.sh.in fdb_move_auxiliary.sh @ONLY ) +if (HAVE_FDB_BUILD_TOOLS) + ecbuild_configure_file( move_auxiliary.sh.in fdb_move_auxiliary.sh @ONLY ) + + ecbuild_add_test( + TYPE SCRIPT + CONDITION HAVE_FDB_BUILD_TOOLS + COMMAND fdb_move_auxiliary.sh) +endif() -ecbuild_add_test( - TYPE SCRIPT - CONDITION HAVE_FDB_BUILD_TOOLS - COMMAND fdb_move_auxiliary.sh) \ No newline at end of file