Use DDCore target directly
The DDCORE_LIBRARY variable seems not to be filled (I think starting from 1.11). This is more idiomatic in CMake anyway. Checks the DD4hep version to keep compatibility with old ones.
Edited by Paul Gessinger
Please be advised that registry.cern.ch and registry-tn.cern.ch registries (Registry Service) will be unavailable next Tuesday, Feb 11th starting at 08:00h (Geneva time) for a short period of time. This may cause temporary disruptions to your workflows. Further info: OTG0154380
The DDCORE_LIBRARY variable seems not to be filled (I think starting from 1.11). This is more idiomatic in CMake anyway. Checks the DD4hep version to keep compatibility with old ones.