mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
ENH: maintain backwards compatibility in UsePkgConfig
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user