Move the content to a `ExternalProject-verify.cmake.in` file and use `configure_file` to generate the final script.