From f2893c01ca9ade2b2fbee62c037b942c88bc09b0 Mon Sep 17 00:00:00 2001 From: Hadrien Grasland <grasland@lal.in2p3.fr> Date: Tue, 13 Nov 2018 09:54:10 +0100 Subject: [PATCH] Remove environment variable based setup --- cmake/DD4hepConfig.cmake.in | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cmake/DD4hepConfig.cmake.in b/cmake/DD4hepConfig.cmake.in index d12c959b7..a52bb6084 100644 --- a/cmake/DD4hepConfig.cmake.in +++ b/cmake/DD4hepConfig.cmake.in @@ -21,16 +21,8 @@ if (_lastdir STREQUAL "cmake") get_filename_component(_thisdir "${_thisdir}" PATH) endif() -if( DEFINED ENV{DD4hep_DIR} ) - set ( DD4hep_DIR "$ENV{DD4hep_DIR}" ) -else() - set ( DD4hep_DIR "${_thisdir}" ) -endif() -if( DEFINED ENV{DD4hep_ROOT} ) - set ( DD4hep_ROOT "$ENV{DD4hep_ROOT}" ) -else() - set ( DD4hep_ROOT "${_thisdir}" ) -endif() +set ( DD4hep_DIR "${_thisdir}" ) +set ( DD4hep_ROOT "${_thisdir}" ) set ( DD4hep_VERSION "@DD4hep_VERSION@" ) set ( DD4hep_SOVERSION "@DD4hep_SOVERSION@" ) set ( DD4HEP_USE_GEANT4 "@DD4HEP_USE_GEANT4@" ) -- GitLab