I’m trying to use FetchContent_Declare and DOWNLOAD_COMMAND to download my dependency.
My dependency is a zip file(which contains a big pre-built library) on release of my private github repo, so I’m using github cli to download it. With DOWNLOAD_COMMAND, I can download it successfully.
But I cannot find a way to extract it since both CONFIGURE_COMMAND and BUILD_COMMAND are all disabled for FetchContent, and I’m not sure if UPDATE_COMMAND or PATCH_COMMAND is for this kind of situation.
FetchContent with URL can extract archives automatically and put the output to SOURCE_DIR, so I wonder if there’s any method to do it with DOWNLOAD_COMMAND.
Is it possible? Or should I use ExternalProject or execute_process instead?