View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0015910 | CMake | Modules | public | 2016-01-12 09:54 | 2016-06-10 14:21 |
|
Reporter | Sam Thursfield | |
Assigned To | | |
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | CMake 3.4.1 | |
Target Version | CMake 3.5 | Fixed in Version | CMake 3.5 | |
|
Summary | 0015910: pkg_check_modules() should add PREFIX/share/pkgconfig to PKG_CONFIG_PATH |
Description | Most packages install their .pc files into PREFIX/lib/pkgconfig, but
some put them into PREFIX/share/pkgconfig. Either is valid, and
pkg-config itself looks in both for the /usr and /usr/local prefixes.
|
Tags | No tags attached. |
|
Attached Files | cmake-pkg-config-search-path.patch [^] (1,113 bytes) 2016-01-12 09:54 [Show Content] [Hide Content]commit 16624cb58f066648cc52df62d613ad2aa48b5a05
Author: Sam Thursfield <sam.thursfield@codethink.co.uk>
Date: Tue Jan 12 15:48:55 2016 +0100
FindPkgConfig: add PREFIX/share/pkgconfig to PKG_CONFIG_PATH
Most packages install their .pc files into PREFIX/lib/pkgconfig, but
some put them into PREFIX/share/pkgconfig. Either is valid, and
pkg-config itself looks in both for the /usr and /usr/local prefixes.
This fixes an issue where some packages (yajl, for example) are not
found if they are installed into a non-standard prefix and
CMAKE_PREFIX_PATH is used to locate them.
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index d519c1d..eba6953 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -263,6 +263,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
endif()
endif()
list(APPEND _lib_dirs "lib/pkgconfig")
+ list(APPEND _lib_dirs "share/pkgconfig")
# Check if directories exist and eventually append them to the
# pkgconfig path list
|
|