diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-09 20:02:19 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-09 20:02:19 (GMT) |
commit | ff6146334cbfcc5599e97cc864115bb15e93db11 (patch) | |
tree | 20da1efb2344e9b53d082674fbef03556260deb6 /Modules/FindPkgConfig.cmake | |
parent | b9787a965f8d414b0d505ba48d10c0d4a5082d69 (diff) | |
download | CMake-ff6146334cbfcc5599e97cc864115bb15e93db11.zip CMake-ff6146334cbfcc5599e97cc864115bb15e93db11.tar.gz CMake-ff6146334cbfcc5599e97cc864115bb15e93db11.tar.bz2 |
ENH: better backwards compatibility, and deprecate PKGCONFIG
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 04ea622..afae15c 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -355,31 +355,6 @@ macro(pkg_search_module _prefix _module0) endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION}) endmacro(pkg_search_module) -### -macro(PKGCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags) - message(STATUS "WARNING: you are using the obsolete 'PKGCONFIG' macro") - _pkg_check_modules_internal(0 0 _PKGCONFIG_TMP "${_package}") - if (_PKGCONFIG_TMP_FOUND) - # To be compatible with obsolete module must return blank-delimited strings. - # Also, lead with a blank (for TRUE/FALSE compatibility, 2.4.4 appears to - # have returned a blank sometimes followed by nl for the situation - # where the pkg-config module has been found [e.g., _PKGCONFIG_TMP_FOUND] - # but does not define the desired quantity. - string(REGEX REPLACE ";" " " ${_include_DIR} " ${_PKGCONFIG_TMP_INCLUDE_DIRS}") - string(REGEX REPLACE ";" " " ${_link_DIR} " ${_PKGCONFIG_TMP_LIBRARY_DIRS}") - string(REGEX REPLACE ";" " " ${_link_FLAGS} " ${_PKGCONFIG_TMP_LDFLAGS}") - string(REGEX REPLACE ";" " " ${_cflags} " ${_PKGCONFIG_TMP_CFLAGS}") - set(_return_VALUE 0) - else(_PKGCONFIG_TMP_FOUND) - set(${_include_DIR}) - set(${_link_DIR}) - set(${_link_FLAGS}) - set(${_cflags}) - set(_return_VALUE 1) - endif(_PKGCONFIG_TMP_FOUND) -endmacro(PKGCONFIG) - - ### Local Variables: ### mode: cmake ### End: |