View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014756CMakeCMakepublic2014-02-14 14:202016-06-10 14:31
ReporterBen Boeckel 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.1 
Target VersionFixed in Version 
Summary0014756: RFE: Report changes to cached values
DescriptionAdd a variable to CMake such that it will report when a cached variable's value is different from the default being set. For example:

    set(var dflt CACHE STRING "description")

could output:

    path/to/CMakeLists.txt:42: var 'dflt' -> 'cachedvalue'

and could also, at the end of configure, print out a command line (or initial cache file) to be used to duplicate the build on another machine. I was thinking of 'CMAKE_REPORT_DELTA' as the control variable.

Came up from a gn thread: https://groups.google.com/a/chromium.org/d/msg/gn-dev/la6vwV3x-o4/hkJJ78a7rqwJ [^]
TagsNo tags attached.
Attached Files

 Relationships
related to 0014546closedKitware Robot CACHE variables persist through reruns 

  Notes
(0035112)
Brad King (manager)
2014-02-14 15:38

Note that in Modules/CMakeGenericSystem.cmake we do:

 if(NOT DEFINED CMAKE_INSTALL_PREFIX)
   set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT 1)
 endif()
 ...
   set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "...")
 ...

so that applications can know when they can force a different default for CMAKE_INSTALL_PREFIX without overriding a user setting.

This could be generalized for use with all cache entries. It would be helpful for projects that want to override the default CMAKE_C_FLAGS_DEBUG, for example, without needing to use CMAKE_USER_MAKE_RULES_OVERRIDE and a separate file.

See also discussion in 0014546.
(0042487)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-02-14 14:20 Ben Boeckel New Issue
2014-02-14 15:34 Brad King Relationship added related to 0014546
2014-02-14 15:38 Brad King Note Added: 0035112
2016-06-10 14:29 Kitware Robot Note Added: 0042487
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team