[Cmake-commits] CMake branch, next, updated. v2.8.12.1-5193-g796baf9

Nils Gladitz nilsgladitz at gmail.com
Sun Nov 17 05:03:34 EST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  796baf9dfb3e2d243e2dbd029a90a1227f4bce05 (commit)
       via  7621ad6eaee1af16489b5d5f2e805607ac5082fa (commit)
       via  89f68571925837f9cf5a9928195fc79fbc4b6148 (commit)
       via  c524bdc45894f845e303912d6d74c6ecc00b9395 (commit)
      from  50a00116679ee990c42d4735fe0b7dec56adbdb2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=796baf9dfb3e2d243e2dbd029a90a1227f4bce05
commit 796baf9dfb3e2d243e2dbd029a90a1227f4bce05
Merge: 50a0011 7621ad6
Author:     Nils Gladitz <nilsgladitz at gmail.com>
AuthorDate: Sun Nov 17 05:03:32 2013 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sun Nov 17 05:03:32 2013 -0500

    Merge topic 'cpack-internal-variables' into next
    
    7621ad6 CPack: don't write internal variables to CPackConfig.cmake
    89f6857 CMake Nightly Date Stamp
    c524bdc CMake Nightly Date Stamp


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7621ad6eaee1af16489b5d5f2e805607ac5082fa
commit 7621ad6eaee1af16489b5d5f2e805607ac5082fa
Author:     Nils Gladitz <nilsgladitz at gmail.com>
AuthorDate: Sun Nov 17 11:02:41 2013 +0100
Commit:     Nils Gladitz <nilsgladitz at gmail.com>
CommitDate: Sun Nov 17 11:02:41 2013 +0100

    CPack: don't write internal variables to CPackConfig.cmake
    
    The internal variables CPACK_ADDCOMP_COMPONENTS,
    CPACK_ADDCOMP_STR and CPACK_ADDCOMP_UNAME were being needlessly
    exported to CPackConfig.cmake.
    Prefixing them with an underscore prevents this.
    
    CPACK_ADDCOMP_STR was particularily problematic since it contains
    unescaped quotes.

diff --git a/Modules/CPackComponent.cmake b/Modules/CPackComponent.cmake
index a55a01e..aff8764 100644
--- a/Modules/CPackComponent.cmake
+++ b/Modules/CPackComponent.cmake
@@ -375,17 +375,17 @@ endmacro()
 
 # Macro that adds a component to the CPack installer
 macro(cpack_add_component compname)
-  string(TOUPPER ${compname} CPACK_ADDCOMP_UNAME)
-  cpack_parse_arguments(CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}
+  string(TOUPPER ${compname} _CPACK_ADDCOMP_UNAME)
+  cpack_parse_arguments(CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}
     "DISPLAY_NAME;DESCRIPTION;GROUP;DEPENDS;INSTALL_TYPES;ARCHIVE_FILE"
     "HIDDEN;REQUIRED;DISABLED;DOWNLOADED"
     ${ARGN}
     )
 
-  if (CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_DOWNLOADED)
-    set(CPACK_ADDCOMP_STR "\n# Configuration for downloaded component \"${compname}\"\n")
+  if (CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_DOWNLOADED)
+    set(_CPACK_ADDCOMP_STR "\n# Configuration for downloaded component \"${compname}\"\n")
   else ()
-    set(CPACK_ADDCOMP_STR "\n# Configuration for component \"${compname}\"\n")
+    set(_CPACK_ADDCOMP_STR "\n# Configuration for component \"${compname}\"\n")
   endif ()
 
   if(NOT CPACK_MONOLITHIC_INSTALL)
@@ -394,51 +394,51 @@ macro(cpack_add_component compname)
     # take care of any components that have been added after the CPack
     # 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")
-      foreach(COMP ${CPACK_ADDCOMP_COMPONENTS})
-       set(CPACK_ADDCOMP_STR "${CPACK_ADDCOMP_STR} ${COMP}")
+      get_cmake_property(_CPACK_ADDCOMP_COMPONENTS COMPONENTS)
+      set(_CPACK_ADDCOMP_STR "${_CPACK_ADDCOMP_STR}\nSET(CPACK_COMPONENTS_ALL")
+      foreach(COMP ${_CPACK_ADDCOMP_COMPONENTS})
+       set(_CPACK_ADDCOMP_STR "${_CPACK_ADDCOMP_STR} ${COMP}")
       endforeach()
-      set(CPACK_ADDCOMP_STR "${CPACK_ADDCOMP_STR})\n")
+      set(_CPACK_ADDCOMP_STR "${_CPACK_ADDCOMP_STR})\n")
     endif()
   endif()
 
   cpack_append_string_variable_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_DISPLAY_NAME
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_DISPLAY_NAME
+    _CPACK_ADDCOMP_STR)
   cpack_append_string_variable_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_DESCRIPTION
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_DESCRIPTION
+    _CPACK_ADDCOMP_STR)
   cpack_append_variable_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_GROUP
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_GROUP
+    _CPACK_ADDCOMP_STR)
   cpack_append_variable_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_DEPENDS
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_DEPENDS
+    _CPACK_ADDCOMP_STR)
   cpack_append_variable_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_INSTALL_TYPES
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_INSTALL_TYPES
+    _CPACK_ADDCOMP_STR)
   cpack_append_string_variable_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_ARCHIVE_FILE
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_ARCHIVE_FILE
+    _CPACK_ADDCOMP_STR)
   cpack_append_option_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_HIDDEN
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_HIDDEN
+    _CPACK_ADDCOMP_STR)
   cpack_append_option_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_REQUIRED
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_REQUIRED
+    _CPACK_ADDCOMP_STR)
   cpack_append_option_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_DISABLED
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_DISABLED
+    _CPACK_ADDCOMP_STR)
   cpack_append_option_set_command(
-    CPACK_COMPONENT_${CPACK_ADDCOMP_UNAME}_DOWNLOADED
-    CPACK_ADDCOMP_STR)
+    CPACK_COMPONENT_${_CPACK_ADDCOMP_UNAME}_DOWNLOADED
+    _CPACK_ADDCOMP_STR)
   # Backward compatibility issue.
   # Write to config iff the macros is used after CPack.cmake has been
   # included, other it's not necessary because the variables
   # will be encoded by cpack_encode_variables.
   if(CPack_CMake_INCLUDED)
-    file(APPEND "${CPACK_OUTPUT_CONFIG_FILE}" "${CPACK_ADDCOMP_STR}")
+    file(APPEND "${CPACK_OUTPUT_CONFIG_FILE}" "${_CPACK_ADDCOMP_STR}")
   endif()
 endmacro()
 

-----------------------------------------------------------------------

Summary of changes:
 Modules/CPackComponent.cmake |   62 +++++++++++++++++++++---------------------
 Source/CMakeVersion.cmake    |    2 +-
 2 files changed, 32 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list