Fix compilation with LHCb and new CMake configuration

139 jobs for !566 with fixed-for-cmake-modernization in 27 minutes and 11 seconds (queued for 7 seconds)
latest merge request