[cmake-developers] [CMake 0015805]: pkg_get_variable from FindPkgConfig should honour search path from CMAKE_PREFIX_PATH
Mantis Bug Tracker
mantis at public.kitware.com
Tue Oct 20 17:18:20 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=15805
======================================================================
Reported By: Sam Thursfield
Assigned To:
======================================================================
Project: CMake
Issue ID: 15805
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-10-20 17:18 EDT
Last Modified: 2015-10-20 17:18 EDT
======================================================================
Summary: pkg_get_variable from FindPkgConfig should honour
search path from CMAKE_PREFIX_PATH
Description:
The pkg_get_variable function from FindPkgConfig.cmake that is added in CMake
3.4.0 is really useful! However, it needs to honour the same search path as
pkg_check_modules, otherwise it doesn't work when packages are not installed in
standard prefixes
Steps to Reproduce:
Use attached test case
Expected output:
Magic word is: xyzzy
Actual output:
Package cmake-pkgconfig-test was not found in the pkg-config search path.
Perhaps you should add the directory containing `cmake-pkgconfig-test.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cmake-pkgconfig-test' found
CMake Error at CMakeLists.txt:15 (message):
Did not pick up magic_word variable from cmake-pkgconfig-test.pc
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-20 17:18 Sam Thursfield New Issue
2015-10-20 17:18 Sam Thursfield File Added: cmake-pkg-get-variable-testcase.sh
======================================================================
More information about the cmake-developers
mailing list