From 5de9072a38de9e40486a728c0deb2a9366a4ad11 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Tue, 14 Jun 2022 09:21:14 +0200
Subject: [PATCH] Fix code format checker

The code format checker runs without downloading the external packages such
that one has to emulate the existence of the external packages.
---
 external/CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
index 86b0e1618f..fe9f1da403 100644
--- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt
@@ -73,4 +73,11 @@ else()
   set_target_properties(external::fles_logging PROPERTIES
                         IMPORTED_LOCATION external::fles_logging-NOTFOUND
              )
+
+  # Define an empty macro such that ctest is happy when no externals are
+  # available
+  # This is needed since to speed up the execution of the code format check 
+  # no externals are downloaded
+  macro(xpu_attach)
+  endmacro()
 endif()
-- 
GitLab