Modules: Check for ARGC before using ARGV#

ARGV# could be defined from a parent scope.
This commit is contained in:
Daniele E. Domenichelli
2015-02-26 17:26:12 +01:00
committed by Brad King
parent 4efef3f775
commit a7631fc4e0
8 changed files with 121 additions and 39 deletions

View File

@@ -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)