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
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers