summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-12 12:18:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-12 12:18:54 (GMT)
commitc278b4eda9116e57e158e12aa8e836c3edc8fdf3 (patch)
tree41e4c9d08e782ddf6abdd49660e82097f3cb1d76
parentc5f850d1455cad84a786ff249c9602804ef59041 (diff)
parent10447764727e2d54a813e66b62abc3c61a4ad7f8 (diff)
downloadCMake-c278b4eda9116e57e158e12aa8e836c3edc8fdf3.zip
CMake-c278b4eda9116e57e158e12aa8e836c3edc8fdf3.tar.gz
CMake-c278b4eda9116e57e158e12aa8e836c3edc8fdf3.tar.bz2
Merge topic 'FindPython-ENV-CMAKE_FRAMEWORK_PATH' into release-3.17
1044776472 FindPython: Convert env CMAKE_FRAMEWORK_PATH to CMake path Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Marc Chevrier <marc.chevrier@gmail.com> Merge-request: !4462
-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})