FetchContent: Integration with cmake --fresh
If you use the --fresh
option on the cmake
command line, it should discard the CMakeCache.txt
and other things. But if you run that in a build directory that was previously executed with a different CMake generator to what you want to use now, CMake will complain about the different generator when it tries to re-use the sub-build directory for any FetchContent-provided dependency.
Edited by Craig Scott