Hi.
I’m having some trouble understanding how the CPack external generator is supposed to work. I’m running CPack via the CMake “package” target. In CMake I’m setting CPACK_EXTERNAL_PACKAGE_SCRIPT
to point to a CMake script that invokes an external tool using execute_process
. I want the external process to read the metadata from the CPack generated JSON file and use it to package my library. However, when I run a clean build, the external script runs before the JSON metadata is created causing my packaging step to fail. Is there a way to instruct CPack to generate the JSON metadata before my external script is executed?
Thanks.