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()