diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-05-31 17:05:04 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-05-31 17:05:04 (GMT) |
commit | 52b298bd031d97df7cdb36e6386ebbfab10946b7 (patch) | |
tree | ac076e464144eaf949851dac6d623ed968b01a7c /Modules | |
parent | 66bba23a4b4c6e7901524677f245d02a31b3eff8 (diff) | |
download | CMake-52b298bd031d97df7cdb36e6386ebbfab10946b7.zip CMake-52b298bd031d97df7cdb36e6386ebbfab10946b7.tar.gz CMake-52b298bd031d97df7cdb36e6386ebbfab10946b7.tar.bz2 |
FindPython: ensure Python_ROOT_DIR is always searched first
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindPython/Support.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index 5d39240..49d8e26 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -1228,6 +1228,7 @@ if ("Development" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES} NAMES_PER_DIR + HINTS ${_${_PYTHON_PREFIX}_HINTS} PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS} PATH_SUFFIXES ${_${_PYTHON_PREFIX}_PATH_SUFFIXES} NO_CMAKE_PATH @@ -1338,6 +1339,7 @@ if ("Development" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES} NAMES_PER_DIR + HINTS ${_${_PYTHON_PREFIX}_HINTS} PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS} PATH_SUFFIXES ${_${_PYTHON_PREFIX}_PATH_SUFFIXES} NO_CMAKE_PATH |