configure_file(IMMEDIATE) has been deprecated since CMake 2.2