summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-02-22 16:25:08 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-02-23 17:49:06 (GMT)
commit53d02ea1eae3af89c6802f3f9c32c0284d6e3367 (patch)
tree626ec2f7c809db7be84564c161738e860e170343 /Modules/FindPythonLibs.cmake
parent91d5a2a386051cb7903044267c5364402bbe190b (diff)
downloadCMake-53d02ea1eae3af89c6802f3f9c32c0284d6e3367.zip
CMake-53d02ea1eae3af89c6802f3f9c32c0284d6e3367.tar.gz
CMake-53d02ea1eae3af89c6802f3f9c32c0284d6e3367.tar.bz2
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 c9a240c..fcd0838 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(