summaryrefslogtreecommitdiffstats
path: root/Modules/WriteCompilerDetectionHeader.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/WriteCompilerDetectionHeader.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/WriteCompilerDetectionHeader.cmake')
-rw-r--r--Modules/WriteCompilerDetectionHeader.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/WriteCompilerDetectionHeader.cmake b/Modules/WriteCompilerDetectionHeader.cmake
index 362099e..e7f9912 100644
--- a/Modules/WriteCompilerDetectionHeader.cmake
+++ b/Modules/WriteCompilerDetectionHeader.cmake
@@ -447,7 +447,7 @@ function(write_compiler_detection_header
endif()
if(NOT _WCD_ALLOW_UNKNOWN_COMPILER_VERSIONS)
- set(${compiler_file_content} "${${compiler_file_content}}
+ string(APPEND ${compiler_file_content} "
# if !(${_cmake_oldestSupported_${compiler}})
# error Unsupported compiler version
# endif\n")
@@ -462,7 +462,7 @@ function(write_compiler_detection_header
set(MACRO_HEX)
endif()
string(CONFIGURE "${_compiler_id_version_compute_${compiler}}" VERSION_BLOCK @ONLY)
- set(${compiler_file_content} "${${compiler_file_content}}${VERSION_BLOCK}\n")
+ string(APPEND ${compiler_file_content} "${VERSION_BLOCK}\n")
set(PREFIX)
set(MACRO_DEC)
set(MACRO_HEX)
@@ -478,7 +478,7 @@ function(write_compiler_detection_header
set(_define_item "\n# define ${prefix_arg}_${feature_PP} 0\n")
set(_define_item "\n# if ${_cmake_feature_test_${compiler}_${feature}}\n# define ${prefix_arg}_${feature_PP} 1\n# else${_define_item}# endif\n")
endif()
- set(${compiler_file_content} "${${compiler_file_content}}${_define_item}")
+ string(APPEND ${compiler_file_content} "${_define_item}")
endforeach()
endforeach()
if(pp_if STREQUAL "elif")