I think you want the file to be in `ZINC_BUILD_DIR`, which is the folder from which the build will be run, not `ZINC_DIR`.
It should be the reason of the validation build failure.