Hi All, I'm attempting to replace our use of git submodules with FetchContent flows instead so we can pull pre-built packages if they already exist instead of buildings locally.
However, I need to support a flow similar to Git submodules where developers can edit a submodule and then rebuild the enclosing project incrementally. Things seem to work OK if I jump into the fetched source directories and check out branches, etc. However, even if I move the download and source/unpacked folders outside the build (binary) directory and then delete the build directory, rerunning CMake will blast away the unpacked source even if the last extraction was with the same checksummed download. I need to ensure a "clean" won't delete someones work in a submodule, which is one reason why Git makes it hard to uninit and remove submodules. Is there a best practice for a flow like this that I can replicate? Thanks!
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake