I have a CMakeLists.txt
, which has a file(download xxx yy)
command. There is also a custom_target cpx
, which needs this downloaded file. But when the cpx
target is invoked, the xxx
file is not yet downloaded.
So my question is, when will the download
be executed in CMake, and how can I make my custom target depend on the file(download)
instruction?