summaryrefslogtreecommitdiff
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-02-22 17:25:08 +0100
committerRolf Eike Beer <eike@sf-mail.de>2012-02-23 18:49:06 +0100
commit53d02ea1eae3af89c6802f3f9c32c0284d6e3367 (patch)
tree626ec2f7c809db7be84564c161738e860e170343 /Modules/FindPythonLibs.cmake
parent91d5a2a386051cb7903044267c5364402bbe190b (diff)
downloadcmake-53d02ea1eae3af89c6802f3f9c32c0284d6e3367.tar.gz
FindPythonLibs: stop scanning when libraries are found
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r--Modules/FindPythonLibs.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index c9a240cb88..fcd0838f1f 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -134,6 +134,10 @@ FOREACH(_CURRENT_VERSION ${_Python_VERSIONS})
PYTHONLIBS_VERSION_STRING "${python_version_str}")
UNSET(python_version_str)
ENDIF(PYTHON_INCLUDE_DIR AND EXISTS "${PYTHON_INCLUDE_DIR}/patchlevel.h")
+
+ IF(PYTHON_LIBRARY AND PYTHON_INCLUDE_DIR)
+ BREAK()
+ ENDIF(PYTHON_LIBRARY AND PYTHON_INCLUDE_DIR)
ENDFOREACH(_CURRENT_VERSION)
MARK_AS_ADVANCED(