summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-27 14:11:25 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-02-27 14:11:25 (GMT)
commitf79efeac7939663e0fd67b4087f6ead08402189f (patch)
tree3bc5fdf94f61a5fc7c1e08c2f3a3040e2d503c1d /Modules/ExternalProject.cmake
parente348d8db559fd1d79f936d42582eb628779d23ad (diff)
parenta9fa6a2c777bf68ac1c6d885fd07b21bf98e3f77 (diff)
downloadCMake-f79efeac7939663e0fd67b4087f6ead08402189f.zip
CMake-f79efeac7939663e0fd67b4087f6ead08402189f.tar.gz
CMake-f79efeac7939663e0fd67b4087f6ead08402189f.tar.bz2
Merge topic 'ExternalProject-checkout-clarify'
a9fa6a2c ExternalProject: Run `git checkout` with `--` to clarify arguments
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index c3fd3c6..00781d6 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -601,7 +601,7 @@ if(error_code)
endif()
execute_process(
- COMMAND \"${git_EXECUTABLE}\" \${git_options} checkout ${git_tag}
+ COMMAND \"${git_EXECUTABLE}\" \${git_options} checkout ${git_tag} --
WORKING_DIRECTORY \"${work_dir}/${src_name}\"
RESULT_VARIABLE error_code
)