diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-11-18 11:03:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-01 14:51:53 (GMT) |
commit | ff2451dc2483df34a70c611836b0ea887bfa3c82 (patch) | |
tree | a7c1c29e907cdaeb532ce1d51cb6a0c299662d9e /Modules/ExternalProject.cmake | |
parent | e03ac807cf177b351b4b1720e16480a792bc1833 (diff) | |
download | CMake-ff2451dc2483df34a70c611836b0ea887bfa3c82.zip CMake-ff2451dc2483df34a70c611836b0ea887bfa3c82.tar.gz CMake-ff2451dc2483df34a70c611836b0ea887bfa3c82.tar.bz2 |
ExternalProject: Strip trailing space from git hash
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r-- | Modules/ExternalProject.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 8235dda..e56cc37 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -454,6 +454,7 @@ execute_process( WORKING_DIRECTORY \"${work_dir}\" RESULT_VARIABLE error_code OUTPUT_VARIABLE head_sha + OUTPUT_STRIP_TRAILING_WHITESPACE ) if(error_code) message(FATAL_ERROR \"Failed to get the hash for HEAD\") @@ -479,6 +480,7 @@ execute_process( WORKING_DIRECTORY \"${work_dir}\" RESULT_VARIABLE error_code OUTPUT_VARIABLE tag_sha + OUTPUT_STRIP_TRAILING_WHITESPACE ) # Is the hash checkout out that we want? |