diff options
author | Brad King <brad.king@kitware.com> | 2019-09-17 15:08:27 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-17 15:08:43 (GMT) |
commit | 42a20ef79b86090b65de9836158db2a59c837e69 (patch) | |
tree | 6a90c0c8d90a00083224bd2391e9564bc7c927b1 /Modules | |
parent | 35b580d6033395b491c73005d785aa2c456f734e (diff) | |
parent | 28cb86d7962b2a9b8e49dc62bccf6187761524d9 (diff) | |
download | CMake-42a20ef79b86090b65de9836158db2a59c837e69.zip CMake-42a20ef79b86090b65de9836158db2a59c837e69.tar.gz CMake-42a20ef79b86090b65de9836158db2a59c837e69.tar.bz2 |
Merge topic 'allow-pkg-config-missing-libraries'
28cb86d796 FindPkgConfig: Allow libraries that can't be found with their full path
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Rolf Eike Beer <eike@sf-mail.de>
Merge-request: !3781
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 4c9af91..5162a44 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -214,7 +214,11 @@ function(_pkg_find_libs _prefix _no_cmake_path _no_cmake_environment_path) NAMES ${_pkg_search} ${_find_opts}) mark_as_advanced(pkgcfg_lib_${_prefix}_${_pkg_search}) - list(APPEND _libs "${pkgcfg_lib_${_prefix}_${_pkg_search}}") + if(pkgcfg_lib_${_prefix}_${_pkg_search}) + list(APPEND _libs "${pkgcfg_lib_${_prefix}_${_pkg_search}}") + else() + list(APPEND _libs ${_pkg_search}) + endif() endforeach() set(${_prefix}_LINK_LIBRARIES "${_libs}" PARENT_SCOPE) |