summaryrefslogtreecommitdiffstats
path: root/Modules/UsePkgConfig.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-29 21:12:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-29 21:12:40 (GMT)
commit9b42fff02f1b62f2ba060e819863b672736a393b (patch)
treedc583bca80165255df26cd07fe2a27e323b08de0 /Modules/UsePkgConfig.cmake
parentccb77b65c673037780483e23c7bc1b4bf1d17cbc (diff)
downloadCMake-9b42fff02f1b62f2ba060e819863b672736a393b.zip
CMake-9b42fff02f1b62f2ba060e819863b672736a393b.tar.gz
CMake-9b42fff02f1b62f2ba060e819863b672736a393b.tar.bz2
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 a7c7e59..62cc1d5 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)
+