diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-06-04 15:55:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-04 16:00:06 (GMT) |
commit | 0da2c35d6bf0741ce91c682414b56fdca83160d8 (patch) | |
tree | 2b633623a48d8e51e5c27ab72ed69daa63ecf82d /Modules | |
parent | dae9b3e16fdacda16ea28f47dd42d3243ba42be5 (diff) | |
download | CMake-0da2c35d6bf0741ce91c682414b56fdca83160d8.zip CMake-0da2c35d6bf0741ce91c682414b56fdca83160d8.tar.gz CMake-0da2c35d6bf0741ce91c682414b56fdca83160d8.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/GetPrerequisites.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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() |