diff options
author | Brad King <brad.king@kitware.com> | 2020-05-21 15:36:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-05-21 15:36:09 (GMT) |
commit | d8b3160ce9b011c4f5fab8b3212a6ee57af14acb (patch) | |
tree | b2e1e5310ab89466f1c0ca12cbbed82f989d8646 /Modules | |
parent | 8351a349f759e1797513e53bdfede251f738b773 (diff) | |
parent | 596db17cdd36e5e49a84f46784234c9763fe15d5 (diff) | |
download | CMake-d8b3160ce9b011c4f5fab8b3212a6ee57af14acb.zip CMake-d8b3160ce9b011c4f5fab8b3212a6ee57af14acb.tar.gz CMake-d8b3160ce9b011c4f5fab8b3212a6ee57af14acb.tar.bz2 |
Merge topic 'FindPython-debug-library-lookup'
596db17cdd Merge branch 'backport-3.17-FindPython-debug-library-lookup' into FindPython-debug-library-lookup
e7b9f928f7 FindPython: use CMAKE specific variables to look-up debug library
71e6854b22 FindPython: use CMAKE specific variables to look-up debug library
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4764
Diffstat (limited to 'Modules')
-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 |