Merge topic 'findpython-remove-unneeded-guard'

c6ba196314 FindPython: remove unnecessary if check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4641
This commit is contained in:
Brad King
2020-04-21 12:16:24 +00:00
committed by Kitware Robot

View File

@@ -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()