Use GitHub's "Use this template" feature to create a new repository or clone it manually:
$ git clone https://github.com/iree-org/iree-template-compiler-cmake.git
$ cd iree-template-compiler-cmake
$ git submodule update --init --recursive
The only requirement is that the main IREE repository is added as a submodule. If working in an existing repository then add the submodule and ensure it has its submodules initialized:
$ git submodule add https://github.com/openxla/iree.git third_party/iree/
$ git submodule update --init --recursive