FetchContent: trigger re-downloading of sources
Currently there is no documented way to re-download a dependency via FetchContent
if the SOURCE_DIR
changes or gets corrupted. A possible undocumented way I found is to remove the time stamps located in ${CMAKE_BINARY_DIR}/_deps/${lowercasename}-subbuild/[...]
, however afaict no guarantees are given that this is valid or will remain so in future releases.
It would therefore be very useful either if additional properties such as STAMP_DIR
would also be exposed (as in ExternalProject
), or if a method that guarantees to re-download the dependency would become part of the public API.