No subject
Rolf Eike Beer
eike at sf-mail.de
Thu Sep 22 07:48:15 EDT 2011
Tell the people in the documentation which module to use instead.
---
Modules/UsePkgConfig.cmake | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Modules/UsePkgConfig.cmake b/Modules/UsePkgConfig.cmake
index d101e61..8a74f19 100644
--- a/Modules/UsePkgConfig.cmake
+++ b/Modules/UsePkgConfig.cmake
@@ -1,5 +1,7 @@
# - obsolete pkg-config module for CMake
#
+# Use FindPkgConfig instead.
+#
# Defines the following macros:
#
# PKGCONFIG(package includedir libdir linkflags cflags)
@@ -7,7 +9,8 @@
# Calling PKGCONFIG will fill the desired information into the 4 given
arguments,
# e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR
LIBART_LINK_FLAGS LIBART_CFLAGS)
# if pkg-config was NOT found or the specified software package doesn't
exist, the
-# variable will be empty when the function returns, otherwise they will
contain the respective information
+# variable will be empty when the function returns, otherwise they will
contain the respective
+# information.
#
#=============================================================================
@@ -27,7 +30,7 @@ FIND_PROGRAM(PKGCONFIG_EXECUTABLE NAMES pkg-config )
MACRO(PKGCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags)
MESSAGE(STATUS
- "WARNING: you are using the obsolete 'PKGCONFIG' macro use
FindPkgConfig")
+ "WARNING: you are using the obsolete 'PKGCONFIG' macro, use
FindPkgConfig")
# reset the variables at the beginning
SET(${_include_DIR})
SET(${_link_DIR})
--
1.7.6.1
More information about the cmake-developers
mailing list