From 0da2c35d6bf0741ce91c682414b56fdca83160d8 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 4 Jun 2019 11:55:56 -0400 Subject: GetPrerequisites: fix regression in gp_append_unique The `item` variable was the loop variable in the old code prior to commit 3dfc8b9bd6 (GetPrerequisites: use if(IN_LIST) instead of foreach, 2019-05-09). The function argument `value` should be used instead. --- Modules/GetPrerequisites.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake index 06655a4..5be4676 100644 --- a/Modules/GetPrerequisites.cmake +++ b/Modules/GetPrerequisites.cmake @@ -173,7 +173,7 @@ cmake_policy(PUSH) cmake_policy(SET CMP0057 NEW) # if IN_LIST function(gp_append_unique list_var value) - if(NOT item IN_LIST ${list_var}) + if(NOT value IN_LIST ${list_var}) set(${list_var} ${${list_var}} "${value}" PARENT_SCOPE) endif() endfunction() -- cgit v0.12