diff options
author | Brad King <brad.king@kitware.com> | 2016-08-01 18:59:50 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-01 18:59:50 (GMT) |
commit | 88e1c54a7cd3213d87143558a8fddf39e7fdccc0 (patch) | |
tree | 3bb05b4e935ab00aa445129a073a6ff9321467af /Modules/CPackComponent.cmake | |
parent | bfac78d07479eb652405ee51548c4011766666ce (diff) | |
parent | 7a649111cdea2b10f2ec57084416be619867fbfb (diff) | |
download | CMake-88e1c54a7cd3213d87143558a8fddf39e7fdccc0.zip CMake-88e1c54a7cd3213d87143558a8fddf39e7fdccc0.tar.gz CMake-88e1c54a7cd3213d87143558a8fddf39e7fdccc0.tar.bz2 |
Merge topic 'use-string-append'
7a649111 Use string(APPEND) in Tests
5d0d980d Use string(APPEND) in Modules
Diffstat (limited to 'Modules/CPackComponent.cmake')
-rw-r--r-- | Modules/CPackComponent.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/CPackComponent.cmake b/Modules/CPackComponent.cmake index 6a33086..085992a 100644 --- a/Modules/CPackComponent.cmake +++ b/Modules/CPackComponent.cmake @@ -409,11 +409,11 @@ macro(cpack_add_component compname) # moduled was included. if(NOT CPACK_COMPONENTS_ALL_SET_BY_USER) get_cmake_property(_CPACK_ADDCOMP_COMPONENTS COMPONENTS) - set(_CPACK_ADDCOMP_STR "${_CPACK_ADDCOMP_STR}\nSET(CPACK_COMPONENTS_ALL") + string(APPEND _CPACK_ADDCOMP_STR "\nSET(CPACK_COMPONENTS_ALL") foreach(COMP ${_CPACK_ADDCOMP_COMPONENTS}) - set(_CPACK_ADDCOMP_STR "${_CPACK_ADDCOMP_STR} ${COMP}") + string(APPEND _CPACK_ADDCOMP_STR " ${COMP}") endforeach() - set(_CPACK_ADDCOMP_STR "${_CPACK_ADDCOMP_STR})\n") + string(APPEND _CPACK_ADDCOMP_STR ")\n") endif() endif() @@ -501,8 +501,8 @@ macro(cpack_add_install_type insttype) set(_CPACK_INSTTYPE_STR "\n# Configuration for installation type \"${insttype}\"\n") - set(_CPACK_INSTTYPE_STR - "${_CPACK_INSTTYPE_STR}list(APPEND CPACK_ALL_INSTALL_TYPES ${insttype})\n") + string(APPEND _CPACK_INSTTYPE_STR + "list(APPEND CPACK_ALL_INSTALL_TYPES ${insttype})\n") cpack_append_string_variable_set_command( CPACK_INSTALL_TYPE_${_CPACK_INSTTYPE_UNAME}_DISPLAY_NAME _CPACK_INSTTYPE_STR) |