View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015575CMakeDocumentationpublic2015-05-20 04:562015-11-02 09:15
ReporterAntonio 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 3.3Fixed in VersionCMake 3.3 
Summary0015575: Ambiguous documentation for how to define a (cached) variable in cmake from command line
DescriptionAs 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?
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0038776)
Brad King (manager)
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 (manager)
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 (manager)
2015-11-02 09:15

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-05-20 04:56 Antonio New Issue
2015-05-20 08:39 Brad King Note Added: 0038776
2015-05-20 08:39 Brad King Status new => resolved
2015-05-20 08:39 Brad King Resolution open => fixed
2015-05-20 08:39 Brad King Fixed in Version => CMake 3.3
2015-05-20 08:39 Brad King Target Version => CMake 3.3
2015-05-20 08:44 Brad King Note Added: 0038777
2015-11-02 09:15 Robert Maynard Note Added: 0039817
2015-11-02 09:15 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team