From b1c82641237c1da7ae4d7af1fcb1cf69f596a54c Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Thu, 27 Jun 2019 13:49:55 +0200 Subject: [PATCH] find_package2: Fix list sub-command REMOVE_DUPLICATES requires list to be present Fixes #175 --- cmake/FairMQLib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FairMQLib.cmake b/cmake/FairMQLib.cmake index 4c4dc564..f5fac654 100644 --- a/cmake/FairMQLib.cmake +++ b/cmake/FairMQLib.cmake @@ -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