From c6ba1963148191a05b2aa31bfad5e357aae1d5a3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 20 Apr 2020 10:30:09 -0400 Subject: FindPython: remove unnecessary if check `list(REMOVE_DUPLICATES)` is safe on empty lists since 3.14. --- Modules/FindPython/Support.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index 7562879..84487a3 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -777,9 +777,7 @@ function (_PYTHON_SET_LIBRARY_DIRS _PYTHON_SLD_RESULT) list (APPEND _PYTHON_DIRS "${_PYTHON_DIR}") endif() endforeach() - if (_PYTHON_DIRS) - list (REMOVE_DUPLICATES _PYTHON_DIRS) - endif() + list (REMOVE_DUPLICATES _PYTHON_DIRS) set (${_PYTHON_SLD_RESULT} ${_PYTHON_DIRS} PARENT_SCOPE) endfunction() -- cgit v0.12