Allow even empty lists of config vars

Modules that does not use the concept of _CONFIG_VARS will not have
exported anything, so we may end up with an empty list.
This commit is contained in:
Roland Kaufmann 2012-12-05 11:26:03 +01:00
parent e62f4a1b69
commit 8fddb7a879

View File

@ -50,7 +50,9 @@ function (configure_vars obj filename verb)
# only write the current value of each variable once # only write the current value of each variable once
list (APPEND _args ${ARGN}) list (APPEND _args ${ARGN})
list (REMOVE_DUPLICATES _args) if (_args)
list (REMOVE_DUPLICATES _args)
endif (_args)
# process each variable # process each variable
set (_prev_verbatim TRUE) set (_prev_verbatim TRUE)