Set policy CMP0043 only if it exists

Guard the command to avoid errors with CMake versions older than 3.0.