Potential fix for ROOT-5745 again (CMake)