diff options
author | Matt McCormick <matt.mccormick@kitware.com> | 2014-03-13 11:19:11 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-14 09:11:26 -0400 |
commit | 59220198022d2e081ddba164c1ec62a6e9d438eb (patch) | |
tree | 5ea78f5f720f494e24356369fff70726f3e7835d /Modules/FindPythonInterp.cmake | |
parent | a9e6de2acc1ac2e51b4d737b3abbeee3bf43832c (diff) | |
download | cmake-59220198022d2e081ddba164c1ec62a6e9d438eb.tar.gz |
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/FindPythonInterp.cmake')
-rw-r--r-- | Modules/FindPythonInterp.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake index 780cda8f70..f8ff5d88be 100644 --- a/Modules/FindPythonInterp.cmake +++ b/Modules/FindPythonInterp.cmake @@ -27,6 +27,10 @@ # of version numbers that should be taken into account when searching # for Python. You need to set this variable before calling # find_package(PythonInterp). +# +# If also calling find_package(PythonLibs), call find_package(PythonInterp) +# first to get the currently active Python version by default with a consistent +# version of PYTHON_LIBRARIES. #============================================================================= # Copyright 2005-2010 Kitware, Inc. |