summaryrefslogtreecommitdiff
path: root/Modules/UsePkgConfig.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-16 12:40:37 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-16 12:40:37 -0400
commit0b937cc4aec9a02348ec9ce1bd0ff0f29c866346 (patch)
tree965166dd794ce7f75ac76915303b823a7095a0d8 /Modules/UsePkgConfig.cmake
parentb5e558e291effd974e6d137bdec5f68a1a3c04a1 (diff)
downloadcmake-0b937cc4aec9a02348ec9ce1bd0ff0f29c866346.tar.gz
Fix for bug#9553, print a warning if pkg-config is not found.
Diffstat (limited to 'Modules/UsePkgConfig.cmake')
-rw-r--r--Modules/UsePkgConfig.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/UsePkgConfig.cmake b/Modules/UsePkgConfig.cmake
index 5d7d65c083..bddf5b4878 100644
--- a/Modules/UsePkgConfig.cmake
+++ b/Modules/UsePkgConfig.cmake
@@ -53,6 +53,11 @@ MACRO(PKGCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags)
MESSAGE(STATUS "PKGCONFIG() indicates that ${_package} is not installed (install the package which contains ${_package}.pc if you want to support this feature)")
ENDIF(NOT _return_VALUE)
+
+ # if pkg-config has NOT been found, INFORM the user
+ ELSE(PKGCONFIG_EXECUTABLE)
+
+ MESSAGE(STATUS "WARNING: PKGCONFIG() indicates that the tool pkg-config has not been found on your system. You should install it.")
ENDIF(PKGCONFIG_EXECUTABLE)