summaryrefslogtreecommitdiffstats
path: root/Modules/BundleUtilities.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2015-02-26 16:26:12 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-27 15:59:23 (GMT)
commita7631fc4e026f2e330b10eae73f473f240c3d0c1 (patch)
treed51c0ee64c296bedf59e18db82821457f93f3b66 /Modules/BundleUtilities.cmake
parent4efef3f775e78bdcb4591dc37aa974bc28e8fd84 (diff)
downloadCMake-a7631fc4e026f2e330b10eae73f473f240c3d0c1.zip
CMake-a7631fc4e026f2e330b10eae73f473f240c3d0c1.tar.gz
CMake-a7631fc4e026f2e330b10eae73f473f240c3d0c1.tar.bz2
Modules: Check for ARGC before using ARGV#
ARGV# could be defined from a parent scope.
Diffstat (limited to 'Modules/BundleUtilities.cmake')
-rw-r--r--Modules/BundleUtilities.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake
index ce90f30..b7975d3 100644
--- a/Modules/BundleUtilities.cmake
+++ b/Modules/BundleUtilities.cmake
@@ -457,7 +457,11 @@ endfunction()
function(set_bundle_key_values keys_var context item exepath dirs copyflag)
- set(rpaths "${ARGV6}")
+ if(ARGC GREATER 6)
+ set(rpaths "${ARGV6}")
+ else()
+ set(rpaths "")
+ endif()
get_filename_component(item_name "${item}" NAME)
get_item_key("${item}" key)