mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user