adding protections
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Feb 2013 11:56:04 +0000 (11:56 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Feb 2013 11:56:04 +0000 (11:56 +0000)
MUON/rootlogon.C

index 90c6414..2a10390 100644 (file)
@@ -32,8 +32,9 @@
   includePath        += "-I${ALICE_ROOT}/MUON/mapping ";
   includePath        += "-I${ALICE_ROOT}/RAW ";
   includePath        += "-I${ALICE_ROOT}/include ";
-  includePath        += "-I${ALICE_INSTALL}/include ";
-  includePath        += "-I${ALICE_BUILD}/include ";
+  
+  if ( gSystem->Getenv("ALICE_INSTALL") ) includePath += "-I${ALICE_INSTALL}/include ";
+  if ( gSystem->Getenv("ALICE_BUILD") ) includePath += "-I${ALICE_BUILD}/include ";
 
   gSystem->SetIncludePath(includePath.Data());
 }