summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.h
Commit message (Collapse)AuthorAgeFilesLines
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-51/+41
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Source: Stabilize include orderBrad King2016-04-291-0/+1
| | | | | Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them.
* cmState: Move ParseCacheEntry from cmCacheManager.Stephen Kelly2015-10-101-6/+0
|
* cmCacheManager: Port away from cmake instance.Stephen Kelly2015-10-101-2/+1
|
* Inline unary LoadCache.Stephen Kelly2015-10-101-1/+0
|
* cmCacheManager: Remove cmMakefile dependency.Stephen Kelly2015-10-101-2/+1
| | | | Update comment.
* cmState: Move CacheEntryType enum from cmCacheManager.Stephen Kelly2015-04-131-20/+15
|
* cmMakefile: Remove unused CacheManager accessor.Stephen Kelly2015-04-131-2/+0
| | | | Remove unneeded friend declarations from cmCacheManager.
* Introduce cmState class.Stephen Kelly2015-04-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | At this point, it is an interface to the cache. It will be extended to be a universal interface for access to and manipulation of configuration-time data (defintions, properties on targets, directories, source files etc). This will allow porting all command implementations away from the cmMakefile and cmTarget classes, and result in something more-purely related to configuration-time processing of cmake commands. That should serve at least the following goals: * Split the CMake implementation more definitively into three stages: Configuration, computation and generation, and be able to implement each optimally for memory access patterns etc. * Make better IDE integration possible by making more configuration data available. * Make it possiblte to use a smaller library than CMakeLib.a in cpack and ctest, resulting in smaller executables. * Make it possible to run the configure step multiple times in the same CMake run (#14539). Manage its lifetime in the cmake class, and add a convenience accessor to cmMakefile.
* cmCacheManager: Add non-iterator-based API.Stephen Kelly2015-04-081-0/+75
| | | | | | The iterator pattern is an unusual one for CMake, and it hinders refactoring all configuration-time data manipulation into a single class.
* cmCacheManager: Return a C string from GetValue.Stephen Kelly2015-04-081-1/+1
| | | | | | | This is for consistency with other CMake access interfaces such as definitions and properties which use a null value as a 'not present' value. It is source compatible with existing callers, and it returns a pointer into actual real cache entry storage.
* cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.Stephen Kelly2015-04-071-1/+1
| | | | | Being initialized is a requirement for this method to return something, and is what differentiates it from using GetIterator with it.GetValue.
* Revert topic 'refactor-cache-api'Brad King2015-04-071-76/+1
| | | | | | This topic was never tested without some follow-up commits. The GetCacheEntryValue API returns a pointer to memory freed on return. It will have to be revised along with the rest of the original topic.
* cmCacheManager: Add non-iterator-based API.Stephen Kelly2015-04-061-0/+75
| | | | | | The iterator pattern is an unusual one for CMake, and it hinders refactoring all configuration-time data manipulation into a single class.
* cmCacheManager: Rename GetCacheValue to GetInitializedCacheValue.Stephen Kelly2015-04-061-1/+1
| | | | | Being initialized is a requirement for this method to return something, and is what differentiates it from using GetIterator with it.GetValue.
* cmCacheManager: Remove unused methodStephen Kelly2015-04-051-1/+0
|
* cmCacheManager: Remove unused overloads.Stephen Kelly2015-04-051-5/+0
|
* stringapi: Use strings for cache iterator valuesBen Boeckel2014-03-081-3/+3
|
* stringapi: Miscellaneous char* parametersBen Boeckel2014-03-081-1/+1
|
* strings: Remove cmStdString referencesBen Boeckel2014-03-081-4/+4
| | | | | | | | | | | Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
* stringapi: Use strings for cache paths as argumentsBen Boeckel2014-03-081-6/+6
|
* stringapi: Use strings for variable namesBen Boeckel2014-03-081-5/+5
| | | | Variable names are always generated by CMake and should never be NULL.
* stringapi: Use strings for property namesBen Boeckel2014-03-081-9/+9
| | | | Property names are always generated by CMake and should never be NULL.
* cmCacheManager: Consify version accessors.Stephen Kelly2014-01-221-2/+4
|
* cmake: Drop support for "-i" wizard modeBrad King2013-10-181-1/+0
| | | | | Tell users to pass cache values with the -D option on the command line or use cmake-gui or ccmake.
* Drop builtin property documentationBrad King2013-10-161-3/+0
| | | | | | Drop all DefineProperty calls for non-chained properties. Drop the documentation from the chained ones. The documentation for all properties is now in Help/prop_*/*.rst files.
* Fix style.Stephen Kelly2013-05-161-1/+1
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-18/+18
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Fix #12342: Add APPEND_STRING option to set_property()Alex Neundorf2011-07-151-2/+4
| | | | | | | | | set_property() has APPEND, which creates a list. E.g. when appending to COMPILE_FLAGS a string is needed, not a list. With the APPEND_STRING option the value is append as string, not as list. Alex
* Condense parsing of cache entriesBen Boeckel2010-11-221-4/+0
| | | | | If a cache line is being parsed, it shouldn't matter whether it has a type or not; just parse it however possible.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* Remove barely-used cmCacheManager::AddCacheEntryBrad King2009-09-111-3/+0
| | | | | | | The commit "Remove barely-used cmMakefile::AddCacheDefinition" removed all but one use of the cmCacheManager method 'bool' overload. This commit removes the other use and the entire method, thus reducing code duplication.
* BUG: Fix cache properties for CMAKE_STRICT buildBrad King2009-03-131-1/+3
| | | | | All cmPropertyMap instances must have CMakeInstance set. This teaches cmCacheManager to set it on cache entries.
* ENH: Refactor cache entry writing and readingBrad King2009-03-121-1/+8
| | | | | | This factors out duplicated code into reusable methods, thus simplifying writing and reading of cache entry help strings, keys, values, and properties.
* ENH: Document CACHE entry propertiesBrad King2009-03-101-0/+3
| | | | | This adds a property documentation section for CACHE properties. We document the ADVANCED, HELPSTRING, TYPE, and VALUE properties.
* ENH: Teach set/get_property about CACHE propertiesBrad King2009-03-101-0/+1
| | | | | | | | This adds the CACHE option to set_property and get_property commands. This allows full control over cache entry information, so advanced users can tweak their project cache as desired. The set_property command allows only pre-defined CACHE properties to be set since others would not persist anyway.
* ENH: Use cmPropertyMap for cache propertiesBrad King2009-03-101-1/+6
| | | | | This re-implements cache entry property storage in cmCacheManager to use cmPropertyMap so it can share the standard property implementation.
* ENH: clean up some policy stuff and interactions with ↵Ken Martin2008-03-071-0/+1
| | | | CMAKE_BACKWARDS_COMPATIBILITY and CMAKE_MINIMUM_REQUIRED
* BUG: Fix uninitialzed members of cmCacheManager.Brad King2008-01-291-0/+1
|
* ENH: Added cmMakefile::NeedCacheCompatibility method and support for it in ↵Brad King2008-01-241-1/+9
| | | | cmCacheManager. This will allow commands to modify their behavior when running with a cache loaded from an earlier CMake version.
* BUG: When a non-cache variable is marked as advance do not use the ↵Brad King2007-04-101-0/+2
| | | | cmMakefile implementation of AddCacheDefinition to avoid removing the makefile definition.
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-17/+17
|
* ENH: fix line length style stuffBill Hoffman2006-03-101-1/+2
|
* ENH: if CMakeCache.txt has been removed, then automatically remove ↵Bill Hoffman2006-03-091-1/+3
| | | | CMakefiles/*.cmake
* ENH: shorten the symbols a bit and remove maps of std::string for map of ↵Bill Hoffman2004-09-291-2/+2
| | | | cmStdString
* updates to gui to delete cacheKen Martin2004-05-201-0/+3
|
* ENH: Get accessor for cache value as booleanAndy Cedilnik2003-08-081-0/+1
|
* BUG: Fix problem with uninitialized variablesAndy Cedilnik2003-08-021-0/+4
|
* ENH: Allow specifying cmake variables on the command line without specifying ↵Andy Cedilnik2003-08-011-1/+5
| | | | the type Bug #118 - Specifying cache entries with -D should not need the type
* ENH: Add method to convert from CacheEntryType to stringAndy Cedilnik2003-04-291-0/+1
|