summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-28 17:34:59 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-28 17:34:59 (GMT)
commitba728f911a4d55fbe5d56428d27a10d2f62f470e (patch)
tree0a7ad632b69afbb9e819e538e3e15073891ce5c3 /Source
parentb38c2929b0aec6f7ac994ab1e9cbf13052ab1ad6 (diff)
downloadCMake-ba728f911a4d55fbe5d56428d27a10d2f62f470e.zip
CMake-ba728f911a4d55fbe5d56428d27a10d2f62f470e.tar.gz
CMake-ba728f911a4d55fbe5d56428d27a10d2f62f470e.tar.bz2
Consolidate duplicate documentation in cmTarget
The documentation of (ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY was duplicated. We consolidate it using a macro.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx25
1 files changed, 10 insertions, 15 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 8b71505..cf165b5 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -898,30 +898,25 @@ void cmTarget::DefineProperties(cmake *cm)
"an archive target. " \
"All Windows-based systems including Cygwin are DLL platforms."
+#define CM_TARGET_OUTDIR_DOC(TYPE, type) \
+ "This property specifies the directory into which " #type " target " \
+ "files should be built. " \
+ CM_TARGET_FILE_TYPES_DOC " " \
+ "This property is initialized by the value of the variable " \
+ "CMAKE_" #TYPE "_OUTPUT_DIRECTORY if it is set when a target is created."
+
cm->DefineProperty
("ARCHIVE_OUTPUT_DIRECTORY", cmProperty::TARGET,
"Output directory in which to build ARCHIVE target files.",
- "This property specifies the directory into which archive target files "
- "should be built. "
- CM_TARGET_FILE_TYPES_DOC " "
- "This property is initialized by the value of the variable "
- "CMAKE_ARCHIVE_OUTPUT_DIRECTORY if it is set when a target is created.");
+ CM_TARGET_OUTDIR_DOC(ARCHIVE, archive));
cm->DefineProperty
("LIBRARY_OUTPUT_DIRECTORY", cmProperty::TARGET,
"Output directory in which to build LIBRARY target files.",
- "This property specifies the directory into which library target files "
- "should be built. "
- CM_TARGET_FILE_TYPES_DOC " "
- "This property is initialized by the value of the variable "
- "CMAKE_LIBRARY_OUTPUT_DIRECTORY if it is set when a target is created.");
+ CM_TARGET_OUTDIR_DOC(LIBRARY, library));
cm->DefineProperty
("RUNTIME_OUTPUT_DIRECTORY", cmProperty::TARGET,
"Output directory in which to build RUNTIME target files.",
- "This property specifies the directory into which runtime target files "
- "should be built. "
- CM_TARGET_FILE_TYPES_DOC " "
- "This property is initialized by the value of the variable "
- "CMAKE_RUNTIME_OUTPUT_DIRECTORY if it is set when a target is created.");
+ CM_TARGET_OUTDIR_DOC(RUNTIME, runtime));
cm->DefineProperty
("ARCHIVE_OUTPUT_NAME", cmProperty::TARGET,