From f8c8cd5f2e1e34dc89f52df4308f8fac2cc49180 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:11:05 +0100 Subject: [PATCH] Do not compile tests which need GLFW if it's not found (#13774) --- Detectors/MUON/MCH/Geometry/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detectors/MUON/MCH/Geometry/CMakeLists.txt b/Detectors/MUON/MCH/Geometry/CMakeLists.txt index 5e367fa87bbf4..000364af028c6 100644 --- a/Detectors/MUON/MCH/Geometry/CMakeLists.txt +++ b/Detectors/MUON/MCH/Geometry/CMakeLists.txt @@ -12,7 +12,7 @@ add_subdirectory(MisAligner) add_subdirectory(Transformer) add_subdirectory(Creator) -if (BUILD_TESTING) +if (BUILD_TESTING AND GLFW_FOUND) add_subdirectory(Test) endif()