Fixing where the cmake file would over write some cached values.