summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-21 12:16:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-04-21 12:16:39 (GMT)
commitcd957389f240425ddec809f72d3885f024a03df1 (patch)
treee9275b7898df13c743ad4a10c50530e4b134f35c /Modules
parentdba914aa3138acbe442e391b2d3e5b650a7909e8 (diff)
parentc6ba1963148191a05b2aa31bfad5e357aae1d5a3 (diff)
downloadCMake-cd957389f240425ddec809f72d3885f024a03df1.zip
CMake-cd957389f240425ddec809f72d3885f024a03df1.tar.gz
CMake-cd957389f240425ddec809f72d3885f024a03df1.tar.bz2
Merge topic 'findpython-remove-unneeded-guard'
c6ba196314 FindPython: remove unnecessary if check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4641
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPython/Support.cmake4
1 files changed, 1 insertions, 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()