summaryrefslogtreecommitdiffstats
path: root/Modules/FindPythonLibs.cmake
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2014-03-13 15:19:11 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-14 13:11:26 (GMT)
commit59220198022d2e081ddba164c1ec62a6e9d438eb (patch)
tree5ea78f5f720f494e24356369fff70726f3e7835d /Modules/FindPythonLibs.cmake
parenta9e6de2acc1ac2e51b4d737b3abbeee3bf43832c (diff)
downloadCMake-59220198022d2e081ddba164c1ec62a6e9d438eb.zip
CMake-59220198022d2e081ddba164c1ec62a6e9d438eb.tar.gz
CMake-59220198022d2e081ddba164c1ec62a6e9d438eb.tar.bz2
FindPython*: Document suggested find_package order (#13794)
Document in both FindPythonInterp.cmake and FindPythonLibs.cmake that find_package(PythonInterp) should be called before find_package(PythonLibs).
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 656ed7b..1f90f5b 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -31,6 +31,10 @@
#
# PYTHON_LIBRARY - path to the python library
# PYTHON_INCLUDE_DIR - path to where Python.h is found
+#
+# If also calling find_package(PythonInterp), call find_package(PythonInterp)
+# first to get the currently active Python version by default with a consistent
+# version of PYTHON_LIBRARIES.
#=============================================================================
# Copyright 2001-2009 Kitware, Inc.