summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* clang-tidy: modernize-use-autoRegina Pfeifer2019-09-101-6/+4
| | | | | | Set the MinTypeNameLength option to an impossibly high value in order to limit the diagnostics to iterators. Leave new expressions and cast expressions for later.
* clang-tidy: modernize-return-braced-init-listRegina Pfeifer2019-09-061-9/+9
|
* cmCommand refactor: remove unused AddDisallowedCommand overloadGabor Bencze2019-08-261-11/+0
|
* Merge topic 'free-disallowed'Brad King2019-08-211-6/+42
|\ | | | | | | | | | | | | | | c55fb044a9 cmBuildNameCommand: Implement as free function 86bf1eef75 cmState: Support free function disallowed commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3688
| * cmBuildNameCommand: Implement as free functionRegina Pfeifer2019-08-161-0/+1
| |
| * cmState: Support free function disallowed commandsRegina Pfeifer2019-08-131-6/+41
| |
* | Source sweep: Use cmIsOn instead of cmSystemTools::IsOnSebastian Holtermann2019-08-171-1/+1
|/ | | | | | | | | This replaces invocations of - `cmSystemTools::IsInternallyOn` with `cmIsInternallyOn` - `cmSystemTools::IsNOTFOUND` with `cmIsNOTFOUND` - `cmSystemTools::IsOn` with `cmIsOn` - `cmSystemTools::IsOff` with `cmIsOff`
* cmStringAlgorithms: Move string functions to the new cmStringAlgorithms.hSebastian Holtermann2019-07-291-1/+1
| | | | | This adds the `cmStringAlgorithms.h` header and moves all string functions from `cmAlgorithms.h` to `cmStringAlgorithms.h`.
* cmDefinitions: Remove const char* based Set methodSebastian Holtermann2019-07-241-2/+2
| | | | | | | - Removes `cmDefinitions::Set` method overload that takes a `const char*` value argument. - Updates calls to `cmDefinitions::Set` to use the `cm::string_view` based version instead.
* cmState: Support BuiltinCommands as free functionsRegina Pfeifer2019-07-221-0/+17
|
* cmState: Add scripted commands by valueRegina Pfeifer2019-07-211-3/+2
|
* cmUnexpectedCommand: Replace with lambda expressionRegina Pfeifer2019-07-211-5/+21
|
* cmState: Hold commands by valueRegina Pfeifer2019-07-211-26/+10
|