FetchContent + GIT_PROGRESS?
Hello. Recently, I've tried to do this:
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG 5.1.0
GIT_PROGRESS TRUE
)
But unfortunately, it doesn't show any progress from Git when populating. So I've tried (a bit later in the code after FetchContent_Declare above):
FetchContent_Populate(
fmt
GIT_PROGRESS TRUE
)
but this is what I get:
/home/user/build/Debug/fmt-src
is not an existing non-empty directory. Please specify one of:
* SOURCE_DIR with an existing non-empty directory
* DOWNLOAD_COMMAND
* URL
* GIT_REPOSITORY
* SVN_REPOSITORY
* HG_REPOSITORY
* CVS_REPOSITORY and CVS_MODULE
...
The only way to get git progress was to put GIT_TAG and GIT_REPOSITORY into FetchContent_Populate. But it's already specified in FetchContent_Declare. What can I do to not copy-paste?