summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-16 16:40:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-16 16:40:37 (GMT)
commit0b937cc4aec9a02348ec9ce1bd0ff0f29c866346 (patch)
tree965166dd794ce7f75ac76915303b823a7095a0d8
parentb5e558e291effd974e6d137bdec5f68a1a3c04a1 (diff)
downloadCMake-0b937cc4aec9a02348ec9ce1bd0ff0f29c866346.zip
CMake-0b937cc4aec9a02348ec9ce1bd0ff0f29c866346.tar.gz
CMake-0b937cc4aec9a02348ec9ce1bd0ff0f29c866346.tar.bz2
Fix for bug#9553, print a warning if pkg-config is not found.
-rw-r--r--Modules/UsePkgConfig.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/UsePkgConfig.cmake b/Modules/UsePkgConfig.cmake
index 5d7d65c..bddf5b4 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)