diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-18 13:11:19 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-18 13:11:19 (GMT) |
commit | e7b9f928f7eedadac2186d8a3cdf689d23f250a5 (patch) | |
tree | 6eb66eef9ffc33ff412e52738a72abb0c6bff6f8 /Modules/FindPython/Support.cmake | |
parent | 6d9bc2d8cf41d651a6e8c9f6e3e6f5ab384d1f6a (diff) | |
download | CMake-e7b9f928f7eedadac2186d8a3cdf689d23f250a5.zip CMake-e7b9f928f7eedadac2186d8a3cdf689d23f250a5.tar.gz CMake-e7b9f928f7eedadac2186d8a3cdf689d23f250a5.tar.bz2 |
FindPython: use CMAKE specific variables to look-up debug library
Fixes: #20714
Diffstat (limited to 'Modules/FindPython/Support.cmake')
-rw-r--r-- | Modules/FindPython/Support.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index cb400a5..1be0625 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -2600,6 +2600,12 @@ if (("Development.Module" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS NAMES_PER_DIR HINTS "${_${_PYTHON_PREFIX}_PATH}" ${_${_PYTHON_PREFIX}_HINTS} NO_DEFAULT_PATH) + # second try including CMAKE variables to catch-up non conventional layouts + find_library (_${_PYTHON_PREFIX}_LIBRARY_DEBUG + NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES_DEBUG} + NAMES_PER_DIR + NO_SYSTEM_ENVIRONMENT_PATH + NO_CMAKE_SYSTEM_PATH) endif() # retrieve runtime libraries |