summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalData.cmake
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-17 17:23:34 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-17 17:26:11 (GMT)
commit9e24af01375d370ae84c40a95501aa5a33d3fe97 (patch)
treecb39dc478d6e4742d143244a16cffe75ff22539c /Modules/ExternalData.cmake
parent3f25f873f8f0cd4c9c8d5dce29535c6b2757eaea (diff)
downloadCMake-9e24af01375d370ae84c40a95501aa5a33d3fe97.zip
CMake-9e24af01375d370ae84c40a95501aa5a33d3fe97.tar.gz
CMake-9e24af01375d370ae84c40a95501aa5a33d3fe97.tar.bz2
Use string(APPEND) in Modules
Automate with: find Modules -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_\$\{\}]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
Diffstat (limited to 'Modules/ExternalData.cmake')
-rw-r--r--Modules/ExternalData.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalData.cmake b/Modules/ExternalData.cmake
index 873f88d..7331fb2 100644
--- a/Modules/ExternalData.cmake
+++ b/Modules/ExternalData.cmake
@@ -1111,7 +1111,7 @@ if("${ExternalData_ACTION}" STREQUAL "fetch")
list(GET algo_list ${ii} algo)
_ExternalData_download_object("${name}" "${hash}" "${algo}"
obj succeeded algoErrorMsg)
- set(errorMsg "${errorMsg}\n${algoErrorMsg}")
+ string(APPEND errorMsg "\n${algoErrorMsg}")
if(succeeded)
break()
endif()