ENH: Update LINKER_LANGUAGE and HAS_CXX docs
This updates the documentation of these properties to account for the new automatic linker language computation.
This commit is contained in:
parent
22b96543e5
commit
bb2228ea1a
|
@ -196,10 +196,9 @@ void cmTarget::DefineProperties(cmake *cm)
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("HAS_CXX", cmProperty::TARGET,
|
("HAS_CXX", cmProperty::TARGET,
|
||||||
"Force a target to use the CXX linker.",
|
"Link the target using the C++ linker tool (obselete).",
|
||||||
"Setting HAS_CXX on a target will force the target to use the "
|
"This is equivalent to setting the LINKER_LANGUAGE property to CXX. "
|
||||||
"C++ linker (and C++ runtime libraries) for linking even if the "
|
"See that property's documentation for details.");
|
||||||
"target has no C++ code in it.");
|
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("IMPLICIT_DEPENDS_INCLUDE_TRANSFORM", cmProperty::TARGET,
|
("IMPLICIT_DEPENDS_INCLUDE_TRANSFORM", cmProperty::TARGET,
|
||||||
|
@ -418,11 +417,18 @@ void cmTarget::DefineProperties(cmake *cm)
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("LINKER_LANGUAGE", cmProperty::TARGET,
|
("LINKER_LANGUAGE", cmProperty::TARGET,
|
||||||
"What tool to use for linking, based on language.",
|
"Specifies language whose link tool should be used (obselete).",
|
||||||
"The LINKER_LANGUAGE property is used to change the tool "
|
"For executables, shared libraries, and modules, this sets the "
|
||||||
"used to link an executable or shared library. The default is "
|
"language whose link tool is used to link the target "
|
||||||
"set the language to match the files in the library. CXX and C "
|
"(such as \"C\" or \"CXX\"). "
|
||||||
"are common values for this property.");
|
"CMake 2.6 and below select a linker language automatically "
|
||||||
|
"based on the languages compiled into the target. "
|
||||||
|
"This property overrides the default in case one of the "
|
||||||
|
"linked libraries uses another language. "
|
||||||
|
"A typical example is a C executable linking to a static archive "
|
||||||
|
"containing C++ object files. "
|
||||||
|
"CMake 2.8 and above account for languages in linked targets "
|
||||||
|
"automatically, making this property unnecessary.");
|
||||||
|
|
||||||
cm->DefineProperty
|
cm->DefineProperty
|
||||||
("LOCATION", cmProperty::TARGET,
|
("LOCATION", cmProperty::TARGET,
|
||||||
|
|
Loading…
Reference in New Issue