From 68e12443b1ecac252fffb1b18c8501e404c9932f Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Tue, 16 Aug 2022 13:41:40 +0200 Subject: [PATCH] Examples: ignore DDDigi examples if DDDigi not available --- examples/DDDigi/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/DDDigi/CMakeLists.txt b/examples/DDDigi/CMakeLists.txt index 4211aafed..3e0f63243 100644 --- a/examples/DDDigi/CMakeLists.txt +++ b/examples/DDDigi/CMakeLists.txt @@ -17,6 +17,11 @@ IF(NOT TARGET DD4hep::DDCore) dd4hep_configure_output() ENDIF() +IF(NOT TARGET DD4hep::DDDigi) + MESSAGE(STATUS "+++> DDDigi examples shall not be built! [DDDigi not enabled]") + return() +ENDIF() + dd4hep_set_compiler_flags() dd4hep_use_python_executable() #========================================================================== -- GitLab