MantisBT - CMake
View Issue Details
0014427CMakeDocumentationpublic2013-09-19 15:502016-06-10 14:31
Rob Stewart 
Kitware Robot 
normaltextN/A
closedmoved 
CMake 2.8.11 
 
0014427: SET_SOURCE_FILES_PROPERTIES() Documentation Unclear
The documentation doesn't make clear that it replaces the existing property values with those being set, presuming I interpret its behavior correctly. That is, "set" implies the current value is replaced (as opposed to "add"). What's more, the syntax for multiword values is left to be inferred. Therefore, I suggest the wording below.

I took the liberty of reformatting the signature, too. I think repetition is better rendered as shown. You can refer to "name" and "value" generically in the text (possibly with notation like <name> to highlight a parameter reference) without resorting to enumerating all variations in the signature.

set_source_files_properties: Sets properties that affect how certain source files are built.

  set_source_files_properties([file [file [...]]]
                              PROPERTIES name value [name value [...]])

Properties can be set on the multiple source files. PROPERTIES expects one or more property name/value pairs. This means that when <value> contains multiple word, it must be quoted. Unknown property names are ignored silently. Refer to the properties documentation for those known to CMake.

NOTE: Source file properties are visible only to targets added in the same (CMAKE_CURRENT_LIST_DIR) directory.
No tags attached.
Issue History
2013-09-19 15:50Rob StewartNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042370
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042370)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.