diff options
author | David Gobbi <david.gobbi@gmail.com> | 2015-09-15 04:48:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-16 15:30:31 (GMT) |
commit | ea2db3bb02b356ce46065789f60c1ed1a77eb995 (patch) | |
tree | 44a1c921336b32d5bdfdcbc4b29fa66347cf1e25 /Modules/FindPythonLibs.cmake | |
parent | c57334fae9c1b007d227d81f1078706d1399746f (diff) | |
download | CMake-ea2db3bb02b356ce46065789f60c1ed1a77eb995.zip CMake-ea2db3bb02b356ce46065789f60c1ed1a77eb995.tar.gz CMake-ea2db3bb02b356ce46065789f60c1ed1a77eb995.tar.bz2 |
FindPythonLibs: Fix OS X framework include directory search path
We use PATH_SUFFIXES to append "python<v>" to each candidate path. Do
not append it to the constructed list of python framework include
directories. Otherwise the combined path will never exist. Note that
the code doesn't yet try to match the suffixes "m" and "u" between the
executable, library, and include directory.
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r-- | Modules/FindPythonLibs.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake index 127662d..1c8776b 100644 --- a/Modules/FindPythonLibs.cmake +++ b/Modules/FindPythonLibs.cmake @@ -154,7 +154,7 @@ foreach(_CURRENT_VERSION ${_Python_VERSIONS}) if(Python_FRAMEWORKS AND NOT PYTHON_INCLUDE_DIR) foreach(dir ${Python_FRAMEWORKS}) list(APPEND PYTHON_FRAMEWORK_INCLUDES - ${dir}/Versions/${_CURRENT_VERSION}/include/python${_CURRENT_VERSION}) + ${dir}/Versions/${_CURRENT_VERSION}/include) endforeach() endif() |