summaryrefslogtreecommitdiff
path: root/Source/cmState.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmSystemTools: Fix 'ErrorOccurred' spellingFeRD (Frank Dana)2022-06-131-1/+1
| | | | | | | | Rename the booleans 's_ErrorOccured' and 's_FatalErrorOccured' to 's_ErrorOccurred' and 's_FatalErrorOccurred', respectively. Rename the getters and setters to 'Get[Fatal]ErrorOccurred' and 'Set[Fatal]ErrorOccurred', and fix all uses across the codebase.
* Dependency providers: Add find_package and FetchContent supportCraig Scott2022-05-251-0/+9
| | | Fixes: #22619
* define_property(): Add INITIALIZE_FROM_VARIABLE argumentKyle Edwards2022-01-201-2/+4
| | | | Fixes: #20698
* cmMessenger: Adopt backtrace printing functionsBrad King2021-12-081-10/+10
| | | | | | Move backtrace printing functions from `cmListFileBacktrace` over to `cmMessenger`, their primary caller. Thread `cmMessenger` instances through APIs needed to update other call sites.
* Source: Fix clang -Wimplicit-fallthrough warningsSean McBride2021-09-281-1/+1
|
* Rename cmProp in cmValueMarc Chevrier2021-09-211-18/+18
|
* Merge topic 'enh-AddCacheEntry-accepts-new-types'Marc Chevrier2021-09-101-1/+1
|\ | | | | | | | | | | | | | | f84193292c Use new AddCacheEntry signatures 3c2e58eeb8 AddCacheEntry accept cmProp or std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6495
| * AddCacheEntry accept cmProp or std::stringMarc Chevrier2021-09-101-1/+1
| |
* | Refactor: Convert parallel string/backtrace vectors to BT vectorsKyle Edwards2021-09-031-5/+0
|/
* Enhancement: SetProperty accept cmProp or std::stringMarc Chevrier2021-08-251-0/+4
| | | | | Methods SetProperty of classes cmPropertyMap, cmStateDirectory and cmMakefile accept now cmProp or std::string as argument.
* cmProp: refactoring: transform alias in classMarc Chevrier2021-08-081-9/+9
| | | | | | To handle safely the values used by CMake variables and properties, introduce the class cmProp as a replacement from the simple pointer to std::string instance.
* cmake: Model normal and try-compile project kinds explicitlyBrad King2021-07-121-13/+10
| | | | | Construct with the project kind instead of mutating state after construction.
* cmState: Construct with modeBrad King2021-07-121-8/+4
|
* Merge topic 'fix-flow-control-override'Brad King2021-06-171-1/+8
|\ | | | | | | | | | | | | c017098d4d CMake: Allow override of unexpected non-flow-control commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6232
| * CMake: Allow override of unexpected non-flow-control commandsKyle Edwards2021-06-161-1/+8
| | | | | | | | Fixes: #22310
* | cmState: Record imported target names in each directoryBrad King2021-06-101-0/+1
|/ | | | | Model the change after commit 089868a244 (cmState: Record buildsystem target names in each directory, 2016-09-16, v3.7.0-rc1~79^2~3).
* clang-tidy: fix `readability-use-anyofallof` warningsBen Boeckel2021-01-271-6/+3
|
* clang-tidy: fix `readability-qualified-auto` warningsBen Boeckel2021-01-271-1/+1
|
* Code style: add missed explicit 'this->'Oleksandr Koval2021-01-051-1/+1
| | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* Merge topic 'cmake-presets-path-arg'Craig Scott2020-10-271-0/+5
|\ | | | | | | | | | | | | b7d7eca66d CMakePresets.json: Rework how --preset argument is handled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5416
| * CMakePresets.json: Rework how --preset argument is handledKyle Edwards2020-10-261-0/+5
| | | | | | | | | | | | | | | | If a path argument with no -S or -B leads to a cache directory, use that directory as the binary directory. Otherwise, use the binary directory from the preset. Fixes: #21311
* | cmState: Prohibit override of flow control commandsKyle Edwards2020-10-221-3/+28
|/
* cmake_language: Add signature to DEFER calls to later timesBrad King2020-09-291-0/+15
| | | | Fixes: #19575
* cmMakefile::GetDefinition: return cmPropVitaly Stakhovsky2020-09-021-2/+3
|
* cmIsOn: add overload accepting const std::string*Vitaly Stakhovsky2020-07-141-2/+1
|
* Single location for cmProp typedefVitaly Stakhovsky2020-06-011-2/+0
|
* cmPropertyDefinitionMap: simplify and shortenTushar Maheshwari2020-05-151-23/+7
|
* cmState::GetInitializedCacheValue: return cmPropVitaly Stakhovsky2020-04-301-2/+1
| | | | cmProp alias is used; no actual change in type
* cmCacheManager: Cleanup CacheIterator interfaceTushar Maheshwari2020-04-181-32/+11
| | | | | | - Expose required functionality from CacheEntry. - Modify usage in cmState member functions. - Remove cmState access to CacheEntry members.
* cmTarget::GetProperty: return cmPropVitaly Stakhovsky2020-03-301-0/+2
|
* Merge topic 'cmprop-getglobalprop'Brad King2020-03-271-13/+31
|\ | | | | | | | | | | | | c84cf42897 cmState::GetGlobalProperty: return cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4521
| * cmState::GetGlobalProperty: return cmPropVitaly Stakhovsky2020-03-251-13/+31
| |
* | cmState::GetCacheEntryProperty: return cmPropVitaly Stakhovsky2020-03-251-4/+3
| |
* | Merge topic 'cmprop-state'Brad King2020-03-251-12/+26
|\ \ | |/ |/| | | | | | | | | ef408dd232 cmState::GetTargetTypeName: return type is *cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4505
| * cmState::GetTargetTypeName: return type is *cmPropVitaly Stakhovsky2020-03-191-12/+26
| |
* | cmCacheManager::GetProperty: return cmPropVitaly Stakhovsky2020-03-191-1/+2
|/
* cmState::GetCacheEntryValue: return cmPropVitaly Stakhovsky2020-03-171-6/+5
|
* Merge topic 'prop_t'Brad King2020-03-171-1/+2
|\ | | | | | | | | | | | | 60f57d0dcc cmPropertyMap: Introduce cmProp as return type for GetProperty() functions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4471
| * cmPropertyMap: Introduce cmProp as return type for GetProperty() functionsVitaly Stakhovsky2020-03-131-1/+2
| | | | | | | | | | | | | | Currently properties are usually stored internally as `std::string`. However, family of GetProperty() functions return them as `const char *` using `c_str()`. The proposed `cmProp`, typedef'ed as `const std::string *` will expose properties more naturally.
* | cmPropertyDefinition: Construct directly in defined stateVitaly Stakhovsky2020-03-131-2/+2
|/ | | | | Move `cmPropertyDefinitionMap::DefineProperty` functionality directly into the constructor to avoid an intermediate state.
* Ninja Multi-Config: Use build.ninja if cmake --build has no --configKyle Edwards2020-02-041-0/+10
| | | | | | If cmake --build is called with no --config argument, and a build.ninja file is available, use that instead of defaulting to the Debug config.
* AppendProperty: convert value param to std::stringVitaly Stakhovsky2020-01-251-2/+2
|
* cmCacheManager: more members use std::stringVitaly Stakhovsky2020-01-061-16/+10
|
* cmState: more members will use std::stringVitaly Stakhovsky2020-01-021-17/+18
|
* Ninja: Add multi-config variantKyle Edwards2019-12-131-0/+10
| | | | Co-Authored-by: vector-of-bool <vectorofbool@gmail.com>
* CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) supportRobert Maynard2019-12-101-0/+3
|
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-1/+2
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* cmState: Avoid lowering command name twiceDaniel Eiband2019-09-211-1/+1
| | | | | The given command given to GetCommand is already lower case so we can use GetCommandByExactName directly.
* cmstd: Modernize CMake system headersMarc Chevrier2019-09-201-1/+1
| | | | | | | | | | | | | | Provide a standardized way to handle the C++ "standard" headers customized to be used with current CMake C++ standard constraints. Offer under directory `cm` headers which can be used as direct replacements of the standard ones. For example: #include <cm/string_view> can be used safely for CMake development in place of the `<string_view>` standard header. Fixes: #19491
* clang-tidy: modernize-deprecated-headersRegina Pfeifer2019-09-161-3/+3
|