diff options
author | Bo Anderson <mail@boanderson.me> | 2020-03-11 17:05:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-11 17:35:33 (GMT) |
commit | 10447764727e2d54a813e66b62abc3c61a4ad7f8 (patch) | |
tree | 4f528e0327ca98b2bba299b289b68a0f2689eec6 /Modules/FindPython | |
parent | dd45b7b429ee70adfbaa522e42b9e51afcd1522d (diff) | |
download | CMake-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.cmake | 3 |
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}) |