find_package2: Fix list sub-command REMOVE_DUPLICATES requires list to be present

Fixes #175
This commit is contained in:
Dennis Klein 2019-06-27 13:49:55 +02:00 committed by Dennis Klein
parent 4d53b7c024
commit b1c8264123

View File

@ -362,7 +362,7 @@ macro(find_package2 qualifier pkgname)
endif()
# deduplicate required component list
if(__components__)
list(REMOVE_DUPLICATES ARGS_COMPONENTS)
list(REMOVE_DUPLICATES __components__)
endif()
# call native find_package