Refs #7363. Fixing CMake policy issues.