CMake/Tests/RunCMake/FindPkgConfig
Benjamin Chrétien 1bfb527f56 FindPkgConfig: return actual error when a package is not found (#15810)
In some cases, CMake returned the following error:

-- Checking for module 'foo'
--   Package 'foo' not found

When the actual error returned by pkg-config was:

  Package 'bar', required by 'foo', not found

Now, the actual error is forwarded to the user.

-- Checking for module 'foo'
--   Package 'bar', required by 'foo', not found

For the standard case (i.e. the package was indeed not found), the
CMake error was:

-- Checking for module 'foo'
--   Package 'foo' not found

But it now prints:

-- Checking for module 'foo'
--   No package 'foo' found

The associated test was also updated. ${last} refers to the last
CLI argument.
2015-10-28 10:18:15 -04:00
..
pc-bar FindPkgConfig: Extend PKG_CONFIG_PATH using CMake variables (#12926) 2014-03-17 09:43:08 -04:00
pc-foo FindPkgConfig: Extend PKG_CONFIG_PATH using CMake variables (#12926) 2014-03-17 09:43:08 -04:00
CMakeLists.txt FindPkgConfig: Extend PKG_CONFIG_PATH using CMake variables (#12926) 2014-03-17 09:43:08 -04:00
FindPkgConfig_CMAKE_APPBUNDLE_PATH.cmake FindPkgConfig: Fix extra paths for CMAKE_{FRAMEWORK,APPBUNDLE}_PATH vars 2015-05-29 19:22:57 +02:00
FindPkgConfig_CMAKE_FRAMEWORK_PATH.cmake FindPkgConfig: Fix extra paths for CMAKE_{FRAMEWORK,APPBUNDLE}_PATH vars 2015-05-29 19:22:57 +02:00
FindPkgConfig_GET_VARIABLE-stdout.txt FindPkgConfig: add a command to query arbitrary variables 2015-09-21 09:39:26 -04:00
FindPkgConfig_GET_VARIABLE.cmake FindPkgConfig: add a command to query arbitrary variables 2015-09-21 09:39:26 -04:00
FindPkgConfig_NO_PKGCONFIG_PATH.cmake Tests: Fix CMP0054 warnings 2014-09-16 09:06:29 -04:00
FindPkgConfig_PKGCONFIG_PATH.cmake Tests: Fix CMP0054 warnings 2014-09-16 09:06:29 -04:00
FindPkgConfig_PKGCONFIG_PATH_NO_CMAKE_ENVIRONMENT_PATH.cmake Tests: Fix CMP0054 warnings 2014-09-16 09:06:29 -04:00
FindPkgConfig_PKGCONFIG_PATH_NO_CMAKE_PATH.cmake Tests: Fix CMP0054 warnings 2014-09-16 09:06:29 -04:00
RunCMakeTest.cmake FindPkgConfig: add a command to query arbitrary variables 2015-09-21 09:39:26 -04:00
dummy-pkg-config.bat FindPkgConfig: More unit tests 2014-03-17 18:10:59 +01:00
dummy-pkg-config.sh FindPkgConfig: return actual error when a package is not found (#15810) 2015-10-28 10:18:15 -04:00