summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
diff options
context:
space:
mode:
authorBo Anderson <mail@boanderson.me>2020-03-11 17:05:32 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-11 17:35:33 (GMT)
commit10447764727e2d54a813e66b62abc3c61a4ad7f8 (patch)
tree4f528e0327ca98b2bba299b289b68a0f2689eec6 /Modules/FindPython
parentdd45b7b429ee70adfbaa522e42b9e51afcd1522d (diff)
downloadCMake-10447764727e2d54a813e66b62abc3c61a4ad7f8.zip
CMake-10447764727e2d54a813e66b62abc3c61a4ad7f8.tar.gz
CMake-10447764727e2d54a813e66b62abc3c61a4ad7f8.tar.bz2
FindPython: Convert env CMAKE_FRAMEWORK_PATH to CMake path
Diffstat (limited to 'Modules/FindPython')
-rw-r--r--Modules/FindPython/Support.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index bf55bf5..32c5283 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -97,8 +97,9 @@ endmacro()
macro (_PYTHON_FIND_FRAMEWORKS)
set (${_PYTHON_PREFIX}_FRAMEWORKS)
if (CMAKE_HOST_APPLE OR APPLE)
+ file(TO_CMAKE_PATH "$ENV{CMAKE_FRAMEWORK_PATH}" _pff_CMAKE_FRAMEWORK_PATH)
set (_pff_frameworks ${CMAKE_FRAMEWORK_PATH}
- $ENV{CMAKE_FRAMEWORK_PATH}
+ ${_pff_CMAKE_FRAMEWORK_PATH}
~/Library/Frameworks
/usr/local/Frameworks
${CMAKE_SYSTEM_FRAMEWORK_PATH})