Fixes issue ROOT-5813 (CMake)