-
- Downloads
FetchContent: Invoke steps directly and avoid a separate sub-build
The cost of setting up and executing a separate sub-build to do the download, update and patch steps required for FetchContent population can be significant with some platforms and CMake generators. Avoid the sub-build altogether by invoking the step scripts directly. Previously, if no generator was set (e.g. population was being done in script mode), a generator needed to be available on the default PATH. Since we no longer use a sub-build, this restriction is also now gone. Fixes: #21703
Showing
- Help/release/dev/fetchcontent-performance.rst 6 additions, 0 deletionsHelp/release/dev/fetchcontent-performance.rst
- Modules/ExternalProject.cmake 162 additions, 64 deletionsModules/ExternalProject.cmake
- Modules/ExternalProject/captured_process_setup.cmake 55 additions, 0 deletionsModules/ExternalProject/captured_process_setup.cmake
- Modules/ExternalProject/customcommand.cmake.in 8 additions, 0 deletionsModules/ExternalProject/customcommand.cmake.in
- Modules/ExternalProject/customcommand_preamble.cmake.in 8 additions, 0 deletionsModules/ExternalProject/customcommand_preamble.cmake.in
- Modules/ExternalProject/download.cmake.in 32 additions, 14 deletionsModules/ExternalProject/download.cmake.in
- Modules/ExternalProject/extractfile.cmake.in 21 additions, 11 deletionsModules/ExternalProject/extractfile.cmake.in
- Modules/ExternalProject/gitclone.cmake.in 51 additions, 26 deletionsModules/ExternalProject/gitclone.cmake.in
- Modules/ExternalProject/gitupdate.cmake.in 65 additions, 27 deletionsModules/ExternalProject/gitupdate.cmake.in
- Modules/ExternalProject/hgclone.cmake.in 30 additions, 17 deletionsModules/ExternalProject/hgclone.cmake.in
- Modules/ExternalProject/hgupdate.cmake.in 10 additions, 2 deletionsModules/ExternalProject/hgupdate.cmake.in
- Modules/ExternalProject/verify.cmake.in 16 additions, 6 deletionsModules/ExternalProject/verify.cmake.in
- Modules/FetchContent.cmake 17 additions, 114 deletionsModules/FetchContent.cmake
- Modules/FetchContent/CMakeLists.cmake.in 0 additions, 27 deletionsModules/FetchContent/CMakeLists.cmake.in
- Tests/RunCMake/FetchContent/RunCMakeTest.cmake 0 additions, 1 deletionTests/RunCMake/FetchContent/RunCMakeTest.cmake
- Tests/RunCMake/FetchContent/SameGenerator.cmake 0 additions, 17 deletionsTests/RunCMake/FetchContent/SameGenerator.cmake
Loading
Please register or sign in to comment