From 2be9d85af8caddb26936279a2ed9b226e97ea410 Mon Sep 17 00:00:00 2001 From: Christian Fetzer Date: Mon, 7 Nov 2016 21:53:23 +0100 Subject: ExternalProject: Allow passing config flags to git clone Add a `GIT_CONFIG` parameter that allows to specify `--config` flags that are passed to the git clone command. This can be used to specify for example `core.autocrlf=true`. The `--config` parameter is supported since Git 1.7.7. --- Help/release/dev/ExternalProject-GIT_CONFIG.rst | 5 +++++ Modules/ExternalProject.cmake | 14 ++++++++++++-- Tests/ExternalProject/CMakeLists.txt | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 Help/release/dev/ExternalProject-GIT_CONFIG.rst diff --git a/Help/release/dev/ExternalProject-GIT_CONFIG.rst b/Help/release/dev/ExternalProject-GIT_CONFIG.rst new file mode 100644 index 0000000..2ab15e5 --- /dev/null +++ b/Help/release/dev/ExternalProject-GIT_CONFIG.rst @@ -0,0 +1,5 @@ +ExternalProject-GIT_CONFIG +-------------------------- + +* The :module:`ExternalProject` module gained a ``GIT_CONFIG`` option + to pass ``--config`` options to Git when cloning repositories. diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 1e0be09..1ba4a8f 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -73,6 +73,10 @@ Create custom targets to build projects in external trees does not output anything which can make the build appear to have stalled. This option forces Git to output progress information during the clone step so that forward progress is indicated. + ``GIT_CONFIG