Consolidate duplicate documentation in cmTarget
The documentation of (ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY was duplicated. We consolidate it using a macro.
This commit is contained in:
parent
b38c2929b0
commit
ba728f911a
|
@ -898,30 +898,25 @@ void cmTarget::DefineProperties(cmake *cm)
|
||||||
"an archive target. " \
|
"an archive target. " \
|
||||||
"All Windows-based systems including Cygwin are DLL platforms."
|
"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
|
cm->DefineProperty
|
||||||
("ARCHIVE_OUTPUT_DIRECTORY", cmProperty::TARGET,
|
("ARCHIVE_OUTPUT_DIRECTORY", cmProperty::TARGET,
|
||||||
"Output directory in which to build ARCHIVE target files.",
|
"Output directory in which to build ARCHIVE target files.",
|
||||||
"This property specifies the directory into which archive target files "
|
CM_TARGET_OUTDIR_DOC(ARCHIVE, archive));
|
||||||
"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->DefineProperty
|
cm->DefineProperty
|
||||||
("LIBRARY_OUTPUT_DIRECTORY", cmProperty::TARGET,
|
("LIBRARY_OUTPUT_DIRECTORY", cmProperty::TARGET,
|
||||||
"Output directory in which to build LIBRARY target files.",
|
"Output directory in which to build LIBRARY target files.",
|
||||||
"This property specifies the directory into which library target files "
|
CM_TARGET_OUTDIR_DOC(LIBRARY, library));
|
||||||
"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->DefineProperty
|
cm->DefineProperty
|
||||||
("RUNTIME_OUTPUT_DIRECTORY", cmProperty::TARGET,
|
("RUNTIME_OUTPUT_DIRECTORY", cmProperty::TARGET,
|
||||||
"Output directory in which to build RUNTIME target files.",
|
"Output directory in which to build RUNTIME target files.",
|
||||||
"This property specifies the directory into which runtime target files "
|
CM_TARGET_OUTDIR_DOC(RUNTIME, runtime));
|
||||||
"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->DefineProperty
|
cm->DefineProperty
|
||||||
("ARCHIVE_OUTPUT_NAME", cmProperty::TARGET,
|
("ARCHIVE_OUTPUT_NAME", cmProperty::TARGET,
|
||||||
|
|
Loading…
Reference in New Issue