summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-29 13:59:14 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-11-29 13:59:14 (GMT)
commit2ee5eac3668ebdcb6dc19c95eaadf3a4b120202b (patch)
tree39af45730d117784fc15fe6ca480d0e6727c94a4 /Modules
parent839cd16396eec521f0112e4f542fcf347d029620 (diff)
parentcbccebbac970e37a772ee06ab766b6cbc085532f (diff)
downloadCMake-2ee5eac3668ebdcb6dc19c95eaadf3a4b120202b.zip
CMake-2ee5eac3668ebdcb6dc19c95eaadf3a4b120202b.tar.gz
CMake-2ee5eac3668ebdcb6dc19c95eaadf3a4b120202b.tar.bz2
Merge topic 'FindPkgConfig-fix-print-errors'
cbccebba FindPkgConfig: Fix missing error text when library version is specified
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPkgConfig.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index 3f75b19..8b7131b 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -381,8 +381,9 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
if (_pkg_check_modules_pkg_op)
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_ver}")
else()
- list(APPEND _pkg_check_modules_exist_query --exists --print-errors --short-errors)
+ list(APPEND _pkg_check_modules_exist_query --exists)
endif()
+ list(APPEND _pkg_check_modules_exist_query --print-errors --short-errors)
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_VERSION)
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_PREFIX)