summaryrefslogtreecommitdiffstats
path: root/Source/cmExportLibraryDependencies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-20 18:36:38 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-20 18:36:38 (GMT)
commit5e72a0d4e4e5ddd6817b294942af41dbb76b1e01 (patch)
treea3645d12ff2003d3128e5e9591e8624f2afa4322 /Source/cmExportLibraryDependencies.h
parentcfd65e29da5406e5ef4b5734cfaa2a0a0c82de35 (diff)
downloadCMake-5e72a0d4e4e5ddd6817b294942af41dbb76b1e01.zip
CMake-5e72a0d4e4e5ddd6817b294942af41dbb76b1e01.tar.gz
CMake-5e72a0d4e4e5ddd6817b294942af41dbb76b1e01.tar.bz2
ENH: Deprecate export_library_dependencies
- Reference export() and install(EXPORT) - Fix to support OUTPUT_NAME in simple cases
Diffstat (limited to 'Source/cmExportLibraryDependencies.h')
-rw-r--r--Source/cmExportLibraryDependencies.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/cmExportLibraryDependencies.h b/Source/cmExportLibraryDependencies.h
index 6fa92d0..b5997cc 100644
--- a/Source/cmExportLibraryDependencies.h
+++ b/Source/cmExportLibraryDependencies.h
@@ -59,8 +59,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
- return
- "Write out the dependency information for all targets of a project.";
+ return "Deprecated. Use INSTALL(EXPORT) or EXPORT command.";
}
/**
@@ -69,6 +68,14 @@ public:
virtual const char* GetFullDocumentation()
{
return
+ "This command generates an old-style library dependencies file. "
+ "Projects requiring CMake 2.6 or later should not use the command. "
+ "Use instead the install(EXPORT) command to help export targets "
+ "from an installation tree and the export() command to export targets "
+ "from a build tree.\n"
+ "The old-style library dependencies file does not take into account "
+ "per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES "
+ "target property.\n"
" export_library_dependencies(<file> [APPEND])\n"
"Create a file named <file> that can be included into a CMake listfile "
"with the INCLUDE command. The file will contain a number of SET "
@@ -78,6 +85,12 @@ public:
"specified, the SET commands will be appended to the given file "
"instead of replacing it.";
}
+
+ /** This command is kept for compatibility with older CMake versions. */
+ virtual bool IsDiscouraged()
+ {
+ return true;
+ }
cmTypeMacro(cmExportLibraryDependenciesCommand, cmCommand);