From 8cc87cf0c2b5621c7e9ac0f298aa3491dfb1fef3 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Fri, 21 Feb 2020 11:09:39 +0100
Subject: [PATCH] MakeGaudiMap: only print info about command when VERBOSE=1

---
 cmake/MakeGaudiMap.cmake | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/cmake/MakeGaudiMap.cmake b/cmake/MakeGaudiMap.cmake
index 3288dcba9..74bb59405 100644
--- a/cmake/MakeGaudiMap.cmake
+++ b/cmake/MakeGaudiMap.cmake
@@ -1,14 +1,12 @@
-message(STATUS " *** Gaudi listcomponents: Generate map for ${libname} ..." )
-  #
-  #  Running listcomponents from DD4hep
-  #
-  MESSAGE( STATUS " *** MakeGaudiMap.cmake run command : ${DD4HEP_LISTCOMPONENTS_CMD} -o ${rootmapfile} ${libname}
-                   WORKING_DIRECTORY ${LIBRARY_LOCATION} "
-    ) 
+IF($ENV{VERBOSE})
+  MESSAGE(" *** Gaudi listcomponents: Generate map for ${libname} ..." )
+  MESSAGE(" *** MakeGaudiMap.cmake run command : ${DD4HEP_LISTCOMPONENTS_CMD} -o ${rootmapfile} ${libname}
+                    WORKING_DIRECTORY ${LIBRARY_LOCATION} "
+    )
+ENDIF()
   GET_FILENAME_COMPONENT(GAUDI_LISTCOMP_INSTALL ${DD4HEP_LISTCOMPONENTS_CMD} DIRECTORY)
   if(APPLE)
     SET ( ENV{DYLD_LIBRARY_PATH} ${LIBRARY_LOCATION}:${DD4HEP_LIBRARY_LOCATION}:$ENV{DYLD_LIBRARY_PATH}:$ENV{DD4HEP_LIBRARY_PATH} )
-    ##EXECUTE_PROCESS( COMMAND echo DYLD_LIBRARY_PATH = $ENV{DYLD_LIBRARY_PATH} )
   else()
     SET ( ENV{LD_LIBRARY_PATH} ${LIBRARY_LOCATION}:${DD4HEP_LIBRARY_LOCATION}:$ENV{LD_LIBRARY_PATH} )
   endif()
-- 
GitLab