[Cmake-commits] [cmake-commits] king committed cmTarget.cxx 1.282 1.283
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Oct 28 13:35:06 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv16406/Source
Modified Files:
cmTarget.cxx
Log Message:
Consolidate duplicate documentation in cmTarget
The documentation of (ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY was
duplicated. We consolidate it using a macro.
Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.282
retrieving revision 1.283
diff -C 2 -d -r1.282 -r1.283
*** cmTarget.cxx 21 Oct 2009 17:00:49 -0000 1.282
--- cmTarget.cxx 28 Oct 2009 17:34:59 -0000 1.283
***************
*** 899,926 ****
"All Windows-based systems including Cygwin are DLL platforms."
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->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->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->DefineProperty
--- 899,921 ----
"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.",
! CM_TARGET_OUTDIR_DOC(ARCHIVE, archive));
cm->DefineProperty
("LIBRARY_OUTPUT_DIRECTORY", cmProperty::TARGET,
"Output directory in which to build LIBRARY target files.",
! CM_TARGET_OUTDIR_DOC(LIBRARY, library));
cm->DefineProperty
("RUNTIME_OUTPUT_DIRECTORY", cmProperty::TARGET,
"Output directory in which to build RUNTIME target files.",
! CM_TARGET_OUTDIR_DOC(RUNTIME, runtime));
cm->DefineProperty
More information about the Cmake-commits
mailing list