diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 25 |
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, |