From 93ef4b2645f76634fe5b35cd0be04cab22ee0efe Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 15 Sep 2023 14:28:09 +0200 Subject: [PATCH] Fix elseif --- cmake/DD4hepBuild.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/DD4hepBuild.cmake b/cmake/DD4hepBuild.cmake index 9b14a51da..68536e5a8 100644 --- a/cmake/DD4hepBuild.cmake +++ b/cmake/DD4hepBuild.cmake @@ -828,7 +828,7 @@ MACRO(DD4HEP_SETUP_GEANT4_TARGETS) dd4hep_debug("Using Geant4 internal CLHEP") if(TARGET CLHEP::CLHEP) message(WARNING "CLHEP::CLHEP already exists, this may cause problems if there are two different installations of CLHEP, one from Geant4 and one external") - else if(NOT TARGET CLHEP::CLHEP) + elseif(NOT TARGET CLHEP::CLHEP) ADD_LIBRARY(CLHEP::CLHEP INTERFACE IMPORTED GLOBAL) endif() SET_TARGET_PROPERTIES(CLHEP::CLHEP