diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 16:12:40 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 16:12:40 -0500 |
commit | 9b42fff02f1b62f2ba060e819863b672736a393b (patch) | |
tree | dc583bca80165255df26cd07fe2a27e323b08de0 /Modules/UsePkgConfig.cmake | |
parent | ccb77b65c673037780483e23c7bc1b4bf1d17cbc (diff) | |
download | cmake-9b42fff02f1b62f2ba060e819863b672736a393b.tar.gz |
ENH: maintain backwards compatibility in UsePkgConfig
Diffstat (limited to 'Modules/UsePkgConfig.cmake')
-rw-r--r-- | Modules/UsePkgConfig.cmake | 7 |
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) + |