summaryrefslogtreecommitdiff
path: root/Modules/UsePkgConfig.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-29 16:12:40 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-29 16:12:40 -0500
commit9b42fff02f1b62f2ba060e819863b672736a393b (patch)
treedc583bca80165255df26cd07fe2a27e323b08de0 /Modules/UsePkgConfig.cmake
parentccb77b65c673037780483e23c7bc1b4bf1d17cbc (diff)
downloadcmake-9b42fff02f1b62f2ba060e819863b672736a393b.tar.gz
ENH: maintain backwards compatibility in UsePkgConfig
Diffstat (limited to 'Modules/UsePkgConfig.cmake')
-rw-r--r--Modules/UsePkgConfig.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/UsePkgConfig.cmake b/Modules/UsePkgConfig.cmake
index a7c7e596c5..62cc1d54b3 100644
--- a/Modules/UsePkgConfig.cmake
+++ b/Modules/UsePkgConfig.cmake
@@ -11,3 +11,10 @@
#
INCLUDE(FindPkgConfig)
+# Retain backwards compatibility with old PKGCONFIG_EXECUTABLE name.
+IF(PKG_CONFIG_EXECUTABLE)
+ SET(PKGCONFIG_EXECUTABLE ${PKG_CONFIG_EXECUTABLE})
+ELSE(PKG_CONFIG_EXECUTABLE)
+ SET(PKGCONFIG_EXECUTABLE PKGCONFIG_EXECUTABLE-NOTFOUND)
+ENDIF(PKG_CONFIG_EXECUTABLE)
+