summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Gobbi <david.gobbi@gmail.com>2015-09-15 04:44:15 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-16 12:59:59 (GMT)
commitc57334fae9c1b007d227d81f1078706d1399746f (patch)
tree1036dedf3e43993da6d8f677438fd0f14d45268f /Modules
parent2db092b1f60b3677a2d44d5563bec216ae687e2f (diff)
downloadCMake-c57334fae9c1b007d227d81f1078706d1399746f.zip
CMake-c57334fae9c1b007d227d81f1078706d1399746f.tar.gz
CMake-c57334fae9c1b007d227d81f1078706d1399746f.tar.bz2
FindPythonLibs: Remove PYTHON_INCLUDE_PATH as input
This cmake variable has been deprecated for over a decade, and using it as an input could potentially cause unexpected results. We still need to keep it as an output variable for compatibility though.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPythonLibs.cmake7
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
index d01fae4..127662d 100644
--- a/Modules/FindPythonLibs.cmake
+++ b/Modules/FindPythonLibs.cmake
@@ -150,13 +150,6 @@ foreach(_CURRENT_VERSION ${_Python_VERSIONS})
PATH_SUFFIXES python${_CURRENT_VERSION}/config
)
- # For backward compatibility, honour value of PYTHON_INCLUDE_PATH, if
- # PYTHON_INCLUDE_DIR is not set.
- if(DEFINED PYTHON_INCLUDE_PATH AND NOT DEFINED PYTHON_INCLUDE_DIR)
- set(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_PATH}" CACHE PATH
- "Path to where Python.h is found" FORCE)
- endif()
-
set(PYTHON_FRAMEWORK_INCLUDES)
if(Python_FRAMEWORKS AND NOT PYTHON_INCLUDE_DIR)
foreach(dir ${Python_FRAMEWORKS})