diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 21:12:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-29 21:12:40 (GMT) |
commit | 9b42fff02f1b62f2ba060e819863b672736a393b (patch) | |
tree | dc583bca80165255df26cd07fe2a27e323b08de0 /Modules/UsePkgConfig.cmake | |
parent | ccb77b65c673037780483e23c7bc1b4bf1d17cbc (diff) | |
download | CMake-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.cmake | 7 |
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) + |