Only clean up config variables if there actually is any

This commit is contained in:
Roland Kaufmann 2013-01-22 14:44:32 +01:00
parent 7227bbf801
commit 107019d22b

View File

@ -153,7 +153,9 @@ function (find_opm_package module deps header lib defs prog conf)
list (APPEND ${module}_CONFIG_VARS ${_dep}_CONFIG_VARS)
endif (DEFINED ${_dep}_CONFIG_VARS)
endforeach (_dep)
list (REMOVE_DUPLICATES ${module}_CONFIG_VARS)
if (${module}_CONFIG_VARS)
list (REMOVE_DUPLICATES ${module}_CONFIG_VARS)
endif (${module}_CONFIG_VARS)
# write status message in the same manner as everyone else
include (FindPackageHandleStandardArgs)