summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Honor CMAKE_GENERATOR env var in --help outputJuan Ramos2022-10-211-0/+1
|
* Dependency providers: Add find_package and FetchContent supportCraig Scott2022-05-241-0/+25
| | | Fixes: #22619
* cmConstStack: Factor out of cmListFileBacktraceBrad King2022-04-021-1/+5
| | | | | | | This presents value semantics for a stack of constant values. Internally it shares ownership to avoid copies. Previously this was implemented by `cmListFileBacktrace` explicitly, but the approach can be re-used for other kinds of stacks.
* define_property(): Add INITIALIZE_FROM_VARIABLE argumentKyle Edwards2022-01-201-1/+7
| | | | Fixes: #20698
* cmMessenger: Adopt backtrace printing functionsBrad King2021-12-081-2/+3
| | | | | | Move backtrace printing functions from `cmListFileBacktrace` over to `cmMessenger`, their primary caller. Thread `cmMessenger` instances through APIs needed to update other call sites.
* Rename cmProp in cmValueMarc Chevrier2021-09-211-9/+10
|
* AddCacheEntry accept cmProp or std::stringMarc Chevrier2021-09-101-0/+12
|
* Enhancement: SetProperty accept cmProp or std::stringMarc Chevrier2021-08-251-0/+1
| | | | | Methods SetProperty of classes cmPropertyMap, cmStateDirectory and cmMakefile accept now cmProp or std::string as argument.
* cmake: Model normal and try-compile project kinds explicitlyBrad King2021-07-121-5/+10
| | | | | Construct with the project kind instead of mutating state after construction.
* cmState: Construct with modeBrad King2021-07-121-8/+7
|
* CMake: Allow override of unexpected non-flow-control commandsKyle Edwards2021-06-161-0/+2
| | | | Fixes: #22310
* Merge topic 'cmake-presets-path-arg'Craig Scott2020-10-271-0/+2
|\ | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | 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-1/+7
|/
* cmake_language: Add signature to DEFER calls to later timesBrad King2020-09-291-0/+2
| | | | Fixes: #19575
* cmState: store commands in unordered_mapOleksandr Koval2020-09-111-3/+3
|
* Modernize: Use #pragma once in all header filesKitware Robot2020-09-031-4/+1
| | | | | | | | | | | | | | | | #pragma once is a widely supported compiler pragma, even though it is not part of the C++ standard. Many of the issues keeping #pragma once from being standardized (distributed filesystems, build farms, hard links, etc.) do not apply to CMake - it is easy to build CMake on a single machine. CMake also does not install any header files which can be consumed by other projects (though cmCPluginAPI.h has been deliberately omitted from this conversion in case anyone is still using it.) Finally, #pragma once has been required to build CMake since at least August 2017 (7f29bbe6 enabled server mode unconditionally, which had been using #pragma once since September 2016 (b13d3e0d)). The fact that we now require C++11 filters out old compilers, and it is unlikely that there is a compiler which supports C++11 but does not support #pragma once.
* Single location for cmProp typedefVitaly Stakhovsky2020-06-011-2/+0
|
* cmState: Drop unused and unimplemented SetCacheValue methodBrad King2020-05-261-1/+0
| | | | Fixes: #20758
* cmPropertyDefinitionMap: simplify and shortenTushar Maheshwari2020-05-151-6/+2
|
* cmState::GetInitializedCacheValue: return cmPropVitaly Stakhovsky2020-04-301-1/+1
| | | | cmProp alias is used; no actual change in type
* Merge topic 'cmprop-getglobalprop'Brad King2020-03-271-1/+1
|\ | | | | | | | | | | | | c84cf42897 cmState::GetGlobalProperty: return cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4521
| * cmState::GetGlobalProperty: return cmPropVitaly Stakhovsky2020-03-251-1/+1
| |
* | cmState::GetCacheEntryProperty: return cmPropVitaly Stakhovsky2020-03-251-2/+2
| |
* | cmState::GetTargetTypeName: return type is *cmPropVitaly Stakhovsky2020-03-191-1/+2
|/
* cmState::GetCacheEntryValue: return cmPropVitaly Stakhovsky2020-03-171-1/+3
|
* 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/+1
| | | | | | 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-1/+1
|
* cmState: more members will use std::stringVitaly Stakhovsky2020-01-021-3/+5
|
* Ninja: Add multi-config variantKyle Edwards2019-12-131-0/+3
| | | | Co-Authored-by: vector-of-bool <vectorofbool@gmail.com>
* cmCommand refactor: remove unused AddDisallowedCommand overloadGabor Bencze2019-08-261-3/+0
|
* cmState: Support free function disallowed commandsRegina Pfeifer2019-08-131-0/+2
|
* cmState: Support BuiltinCommands as free functionsRegina Pfeifer2019-07-221-0/+3
|
* cmState: Add scripted commands by valueRegina Pfeifer2019-07-211-2/+1
|
* cmUnexpectedCommand: Replace with lambda expressionRegina Pfeifer2019-07-211-0/+1
|
* cmState: Hold commands by valueRegina Pfeifer2019-07-211-4/+9
|
* modernize: manage cmCommand instances using unique_ptr.Marc Chevrier2019-07-141-5/+8
|
* IWYU: Fix handling of <memory> standard headerBrad King2019-07-101-0/+1
| | | | | | | | An old workaround for `std::allocator_traits<>::value_type` lints from IWYU on `std::vector<>` usage breaks IWYU's handling of `<memory>`. Convert the workaround to use the same approach we already use for a workaround of `std::__decay_and_strip<>::::__type` lints. Then update the `<memory>` inclusions to follow the now-correct IWYU lints.
* modermize: replace some raw pointers w/ `unique_ptr`Alex Turbov2019-06-241-2/+2
|
* Fix invalid ///! doxygen comment line startsSebastian Holtermann2019-03-311-1/+1
| | | | | In various places `///!` was used to start a comment line. This is not valid Doygen syntax. This patch replaces `///!` comment starts with `//!`.
* Delete some default constructors and assignment operatorsAlbert Astals Cid2019-02-151-0/+3
| | | | | | They are unused, but if someone used them they would lead to problems since they would copy the internal raw pointers and the destructor would cause double delete
* set: warn if CACHE type is not recognizedTaylor Holberton2019-01-301-0/+2
|
* Merge topic 'GHS_updates'Brad King2019-01-181-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 21ab58d3f8 GHS: Update test suite 72e0c115b7 GHS: Add Compiler ID detection 436cc5e991 GHS: try_compile() now uses GHS platform variables 4a1ec0de3d GHS: Fix toolset selection 1a66acdef2 GHS: Append ".gpj" to target name when generating build command 0c9e47d7cd GHS: Integrity Application updates 8044318431 GHS: Add support for some of the source file properties 73092b2213 GHS: Add support for object libraries ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2231
| * GHS: try_compile() now uses GHS platform variablesFred Baksik2019-01-161-0/+3
| | | | | | | | | | | | | | -- Forward GHS platform variables to try_compile() CMAKE_TRY_COMPILE_PLATFORM_VARIABLES only worked for source signature try_compile() -- Update tests to no longer add GHS platform variables to try_compile() -- Avoid linker error in GhsMulti/GhsMultiCompilerOptions/CMakeLists.txt by building library
* | Properties: Add CMAKE_ROLE global propertyKyle Edwards2019-01-171-0/+17
|/ | | | | This property allows scripts to determine whether they're in project mode, script mode, find-package mode, CTest, or CPack.
* clang-tidy: Use default member initializationRegina Pfeifer2018-12-151-8/+8
|
* Merge topic 'set_directory_properties-script-mode'Brad King2018-10-301-0/+1
|\ | | | | | | | | | | | | 50572d638b set_directory_properties: Restore in script mode Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2544
| * set_directory_properties: Restore in script modeBrad King2018-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.10.0-rc1~391^2~3 (Add directory property 'LABELS' and CMAKE_DIRECTORY_LABELS variable, 2017-06-23) this command was accidentally not allowed in script mode. It was dropped because `ctest -S` mode needs to start with CMake's normal script mode and then replace the `set_directory_properties` implementation. Restore the normal `set_directory_properties` in script mode and then add special logic to replace it in ctest. Also add a test case. Fixes: #18523
* | cmState::GetInitializedCacheValue: Return as const std::string*Vitaly Stakhovsky2018-09-101-1/+1
| |