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
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.