summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-11-03 14:06:48 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-03 14:55:35 (GMT)
commit1c912056a1ae393183b06c4f9fdfc896d5bb469d (patch)
treebce6d94f91faf339d725957eb5ed17b3a18418df /Modules/FindPython
parent855bdc586c2c8c6ed029c6d0e370e19e0b2e6193 (diff)
downloadCMake-1c912056a1ae393183b06c4f9fdfc896d5bb469d.zip
CMake-1c912056a1ae393183b06c4f9fdfc896d5bb469d.tar.gz
CMake-1c912056a1ae393183b06c4f9fdfc896d5bb469d.tar.bz2
cmake_path: remove new command from 3.19
Defer adding this command until post-3.19 development so that it has more time to mature before being included in a release. Issue: #21385
Diffstat (limited to 'Modules/FindPython')
-rw-r--r--Modules/FindPython/Support.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index 2b911ae..028ce08 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -2997,9 +2997,8 @@ if (("Development.Module" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS
unset(_${_PYTHON_PREFIX}_is_prefix)
foreach (_${_PYTHON_PREFIX}_implementation IN LISTS _${_PYTHON_PREFIX}_FIND_IMPLEMENTATIONS)
foreach (_${_PYTHON_PREFIX}_framework IN LISTS _${_PYTHON_PREFIX}_${_${_PYTHON_PREFIX}_implementation}_FRAMEWORKS)
- cmake_path (IS_PREFIX _${_PYTHON_PREFIX}_framework "${${_PYTHON_PREFIX}_LIBRARY_RELEASE}" _${_PYTHON_PREFIX}_is_prefix)
- if (_${_PYTHON_PREFIX}_is_prefix)
- cmake_path (GET _${_PYTHON_PREFIX}_framework PARENT_PATH _${_PYTHON_PREFIX}_framework)
+ if (${_PYTHON_PREFIX}_LIBRARY_RELEASE MATCHES "^${_${_PYTHON_PREFIX}_framework}")
+ get_filename_component (_${_PYTHON_PREFIX}_framework "${_${_PYTHON_PREFIX}_framework}" DIRECTORY)
set (${_PYTHON_PREFIX}_LINK_OPTIONS "LINKER:-rpath,${_${_PYTHON_PREFIX}_framework}")
break()
endif()