MantisBT - CMake
View Issue Details
0015575CMakeDocumentationpublic2015-05-20 04:562015-11-02 09:15
Antonio 
 
normalminoralways
closedfixed 
 
CMake 3.3CMake 3.3 
0015575: Ambiguous documentation for how to define a (cached) variable in cmake from command line
As discussed in http://stackoverflow.com/questions/30319646/ambiguous-documentation-for-how-to-define-a-cached-variable-in-cmake-from-comm: [^]

In the command line synopsis there's

-D<var>=<value>

While in the option description we read:

-D <var>:<type>=<value>

The two entries differ by a space between -D and the variable definition, and by the presence/absence of :<type>.

Does the space make any difference? What is the difference between specifying or not the type? Is it cached in any case? Is it shown in the gui afterwards?
No tags attached.
Issue History
2015-05-20 04:56AntonioNew Issue
2015-05-20 08:39Brad KingNote Added: 0038776
2015-05-20 08:39Brad KingStatusnew => resolved
2015-05-20 08:39Brad KingResolutionopen => fixed
2015-05-20 08:39Brad KingFixed in Version => CMake 3.3
2015-05-20 08:39Brad KingTarget Version => CMake 3.3
2015-05-20 08:44Brad KingNote Added: 0038777
2015-11-02 09:15Robert MaynardNote Added: 0039817
2015-11-02 09:15Robert MaynardStatusresolved => closed

Notes
(0038776)
Brad King   
2015-05-20 08:39   
This was partially resolved by a recent commit:

 Help: Document conversion of PATH/FILEPATH cache values to absolute paths
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=77d466ec [^]

I've updated the documentation further to clarify:

 Help: Spell '-D' option consistently across documentation
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b0ea3673 [^]
(0038777)
Brad King   
2015-05-20 08:44   
This recent commit is also relevant:

 Help: Rewrite 'set` command documentation
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=91eb7363 [^]
(0039817)
Robert Maynard   
2015-11-02 09:15   
Closing resolved issues that have not been updated in more than 4 months.