diff options
author | Brad King <brad.king@kitware.com> | 2020-03-12 12:18:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-12 12:18:54 (GMT) |
commit | 3a49ea6f256abb7bd063617e0a9230b3168f6988 (patch) | |
tree | 472458755f80f5ac672668765c4ebc3b73e712ee /Modules/FindPython | |
parent | 159da18e6542a97e505ada9c5d7898976a0f17cc (diff) | |
parent | 10447764727e2d54a813e66b62abc3c61a4ad7f8 (diff) | |
download | CMake-3a49ea6f256abb7bd063617e0a9230b3168f6988.zip CMake-3a49ea6f256abb7bd063617e0a9230b3168f6988.tar.gz CMake-3a49ea6f256abb7bd063617e0a9230b3168f6988.tar.bz2 |
Merge topic 'FindPython-ENV-CMAKE_FRAMEWORK_PATH'
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
Diffstat (limited to 'Modules/FindPython')
-rw-r--r-- | Modules/FindPython/Support.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index e903f2a..77b6562 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -95,8 +95,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}) |