diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2015-07-13 20:25:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-15 14:00:00 (GMT) |
commit | 506f6bc0d269653cbba27257b9fed350365037c3 (patch) | |
tree | 450b752a3f358f4bf740948e38a5e51b9192d713 /Modules/CPackDeb.cmake | |
parent | 32e9276a086c8ec78d0d6ff15bf576571118c3d7 (diff) | |
download | CMake-506f6bc0d269653cbba27257b9fed350365037c3.zip CMake-506f6bc0d269653cbba27257b9fed350365037c3.tar.gz CMake-506f6bc0d269653cbba27257b9fed350365037c3.tar.bz2 |
CPack/DEB: Remove duplicate string(TOUPPER) calls
We compute _local_component_name the first time we check for
CPACK_DEB_PACKAGE_COMPONENT so we can just re-use it later.
Diffstat (limited to 'Modules/CPackDeb.cmake')
-rw-r--r-- | Modules/CPackDeb.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake index 09cddcd..cbb7c33 100644 --- a/Modules/CPackDeb.cmake +++ b/Modules/CPackDeb.cmake @@ -498,7 +498,6 @@ function(cpack_deb_prepare_package_vars) # if per-component dependency, overrides the global CPACK_DEBIAN_PACKAGE_DEPENDS # automatic dependency discovery will be performed afterwards. if(CPACK_DEB_PACKAGE_COMPONENT) - string(TOUPPER "${CPACK_DEB_PACKAGE_COMPONENT}" _local_component_name) set(_component_depends_var "CPACK_DEBIAN_${_local_component_name}_PACKAGE_DEPENDS") # if set, overrides the global dependency @@ -542,7 +541,6 @@ function(cpack_deb_prepare_package_vars) set(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY}) endif() else() - string(TOUPPER ${CPACK_DEB_PACKAGE_COMPONENT} _local_component_name) set(component_description_var CPACK_COMPONENT_${_local_component_name}_DESCRIPTION) # component description overrides package description |