summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-01-25 16:16:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-01-25 16:16:22 (GMT)
commit2e69c0534fb78ac728a4dab75d75df0eec8a6589 (patch)
tree51de5256f898a87dbe1ce23a8f617bf68729816f /Modules
parenta1c1350a1f4c95fa9d2746da5e8528b6e6ed90b0 (diff)
parent55c3435d88618d7ed935736604e7ab989cef4b28 (diff)
downloadCMake-2e69c0534fb78ac728a4dab75d75df0eec8a6589.zip
CMake-2e69c0534fb78ac728a4dab75d75df0eec8a6589.tar.gz
CMake-2e69c0534fb78ac728a4dab75d75df0eec8a6589.tar.bz2
Merge topic 'FindPkgConfig-REQUIRED-issue-12620'
55c3435 FindPkgConfig: respect REQUIRED (#12620)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPkgConfig.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
index c47f583..ce58899 100644
--- a/Modules/FindPkgConfig.cmake
+++ b/Modules/FindPkgConfig.cmake
@@ -85,14 +85,12 @@
### Common stuff ####
set(PKG_CONFIG_VERSION 1)
-set(PKG_CONFIG_FOUND 0)
find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable")
mark_as_advanced(PKG_CONFIG_EXECUTABLE)
-if(PKG_CONFIG_EXECUTABLE)
- set(PKG_CONFIG_FOUND 1)
-endif(PKG_CONFIG_EXECUTABLE)
+include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+find_package_handle_standard_args(PkgConfig DEFAULT_MSG PKG_CONFIG_EXECUTABLE)
# Unsets the given variables