summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
Commit message (Collapse)AuthorAgeFilesLines
* Source/cmake.h: Add ScriptModeExitCode for proper storing exit codeleha-bot2024-01-161-0/+6
| | | | From executed CMake script in SCRIPT_MODE.
* IWYU: Update for Debian 12 CI jobBrad King2023-07-281-2/+2
| | | | | | `include-what-you-use` diagnostics, in practice, are specific to the environment's compiler and standard library. Update includes to satisfy IWYU for our CI job under Debian 12.
* cmake_file_api: New project commandCraig Scott2023-06-051-0/+4
| | | | | | | | Projects can use the new command to request file API replies for the current run. No query files are generated, the query is tracked internally. Replies are created in the file system at generation time in the usual way. Fixes: #24951
* Merge topic 'AddCacheEntry-suppress-raw-pointer-usage'Brad King2023-05-311-10/+8
|\ | | | | | | | | | | | | | | 4fc322bab4 AddCacheEntry: Suppress raw pointer usage Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8520
| * AddCacheEntry: Suppress raw pointer usageMarc Chevrier2023-05-301-10/+8
| |
* | cmake: Add debuggerGlen Chung2023-05-301-0/+31
|/ | | | | | | | | | | | | | | | - Depends on cppdap and jsoncpp. - Add --debugger argument to enable the Debugger. - Add --debugger-pipe argument for DAP traffics over named pipes. - Support breakpoints by filenames and line numbers. - Support exception breakpoints. - Call stack shows filenames and line numbers. - Show Cache Variables. - Show the state of currently defined targets, tests and directories with their properties. - Add cmakeVersion to DAP initialize response. - Include unit tests. Co-authored-by: Ben McMorran <bemcmorr@microsoft.com>
* SetProperty: suppress raw pointer usageMarc Chevrier2023-05-261-1/+4
|
* presets: Add trace options to configure presetsArtin Alavi2023-03-301-8/+2
| | | | | | Add JSON schema version 7 to support them. Fixes: #22543
* try_compile: Record stack of in-progess checks in configure logBrad King2023-01-161-0/+4
| | | | | | | | Many `try_compile` and `try_run` calls occur inside check modules between `message(CHECK_START)` and `message(CHECK_{PASS,FAIL})` pairs. Add a field to configure log entries to report this context. Issue: #23200
* cmake: Make entire in-progress check stack available internallyBrad King2023-01-161-5/+4
| | | | Represent it as a `vector` so we can iterate over the whole stack.
* ConfigureLog: Add infrastructure for structured configure event loggingMatthew Woehlke2022-12-161-0/+8
| | | | | | | | | | Add infrastructure for a "configure log". Use YAML for a balance of machine- and human-readability to records details of configure-time events in a structured format. Teach the RunCMake test framework to support matching the configure log. Issue: #23200
* cmDocumentation: `char*[][2]` → `cmDocumentationEntry[N]`Alex Turbov2022-11-171-31/+4
| | | | | | | | | | Use fixed size arrays of `cmDocumentationEntry` items instead of open arrays of two `char` pointers when describe program options help screens. Also, drop `const char*[][2]` overloads of methods of `cmDocumentation` and `cmDocumentationSection` classes in the sake of generic (template) appenders introduced earlier.
* cmake::CreateProfilingEntry: Refactor to take lambda for argsKyle Edwards2022-11-111-3/+10
|
* Merge topic 'extended-profiling'Brad King2022-10-281-3/+12
|\ | | | | | | | | | | | | | | | | 0fe7aae91f cmake: Add profiling events for configure and generate 3d6a8d7eac cmMakefileProfilingData: Refactor to use RAII Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7828
| * cmMakefileProfilingData: Refactor to use RAIIKyle Edwards2022-10-261-3/+12
| | | | | | | | And add a more generic StartEntry() method.
* | Merge topic 'cmake-presets-workflow-arguments'Brad King2022-10-271-1/+12
|\ \ | |/ |/| | | | | | | | | | | | | | | | | 7ecbe324b0 cmake --workflow: add --fresh option 7d9aa0f00c cmake::Workflow: Refactor to use enum class argument 322193afcd cmake --workflow: print usage and exit on unrecognized argument 70aef29427 cmake --workflow: print usage message Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7825
| * cmake --workflow: add --fresh optionKyle Edwards2022-10-261-1/+7
| | | | | | | | Fixes: #24073
| * cmake::Workflow: Refactor to use enum class argumentKyle Edwards2022-10-261-1/+6
| |
* | try_compile: Propagate --trace through try_compileMatthew Woehlke2022-10-111-1/+11
|/ | | | | Add ability to specify another cmake instance from which to get the trace output target. Use this during try_compile.
* cmake: Add --workflow modeKyle Edwards2022-09-271-0/+14
| | | | Fixes: #23118
* CMake: Support upcoming C++26 language levelRobert Maynard2022-08-311-2/+5
|
* Add cmake_language(GET_MESSAGE_LOG_LEVEL) sub commandAlexandru Croitor2022-06-281-1/+2
| | | | | | | | | | | | | | | | | The new sub-command writes a string representation of the current log level to the output variable given to the sub-command. Given that the log-level might be set either via the --log-level command line option or via the CMAKE_MESSAGE_LOG_LEVEL cache / regular variables, the priority for each of the log level sources is as follows, with the first one being the highest: 1) --log-level 2) CMAKE_MESSAGE_LOG_LEVEL regular variable 3) CMAKE_MESSAGE_LOG_LEVEL cache variable 4) default log level (STATUS) Fixes: #23572
* Move LogLevel enum out of cmake.h headerAlexandru Croitor2022-06-241-17/+4
| | | | | | | Move LogLevel enum into the cmMessageType.h header in preparation for a new log level querying feature. Wrap the enum into a new Message namespace. Adjust all code usages.
* COMPILE_WARNING_AS_ERROR: Add command-line optionMartin Duffy2022-05-181-0/+3
| | | | | | | Add command-line option `--compile-no-warning-as-error` to ignore value of `COMPILE_WARNING_AS_ERROR`. Issue: #19085
* cmake: Add --fresh option to clear the cache and start from scratchBrad King2022-03-221-0/+1
| | | | | | | Simplify the workflow to re-run CMake from scratch as if a build tree were never before processed, regardless of whether it has been. Fixes: #23119
* cmake: Always prefer the last source directory providedRobert Maynard2022-03-171-9/+2
| | | | Fixes: #23334
* cmake: When given multiple source paths use last instead of firstRobert Maynard2022-02-171-0/+23
| | | | | | | | When given two source paths via `-S` or just directory paths prefer the last one. When the paths are mixed always prefer the last `-S` entry. Fixes: #23238
* cmake::GetDebugFindPkgOutput: Use consistent argument nameCraig Scott2022-02-141-1/+1
| | | | | | The argument name used in the class declaration didn't match the one used in the implementation file. The one in the header appears to be a cut-n-paste from GetDebugFindOutput(), but the implementation makes it clear that "pkg" better infers what the argument represents than "var".
* Merge topic 'vs-package-restore'Brad King2022-01-241-2/+3
|\ | | | | | | | | | | | | | | | | | | 9aa7831f05 Presets: add resolve packages setting to build presets. b2f8f0bb87 cmGlobalVisualStudio10Generator: Auto restore NuGet packages. 193b8fca52 cmBuildOptions: Split build arguments into separate object. 6a10103493 Help: Update preset schema description for version 3 entries. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6761
| * cmBuildOptions: Split build arguments into separate object.Carsten Rudolph2022-01-221-2/+3
| |
* | cmake: Warn about unnecessary paths on command lineRobert Maynard2022-01-201-1/+1
|/ | | | | | We can't make it an error as that would break existing behavior. Fixes: #23110
* Refactor: Rename cmCMakePresetsFile to cmCMakePresetsGraphKyle Edwards2022-01-061-3/+3
| | | | And change all references to "file" to say "graph" instead.
* cmake: Add filtered debug-find optionsJohn Parent2021-12-171-1/+8
| | | | | | | | | | Add a `--debug-find-pkg=` option to debug find calls for specific packages. Add a `--debug-find-var=` option to debug find calls for specific return variables. Fixes: #21880
* Rename cmProp in cmValueMarc Chevrier2021-09-211-8/+8
|
* AddCacheEntry accept cmProp or std::stringMarc Chevrier2021-09-101-0/+12
|
* Enhancement: SetProperty accept cmProp or std::stringMarc Chevrier2021-08-251-0/+5
| | | | | 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-2/+2
| | | | | Construct with the project kind instead of mutating state after construction.
* HIP: Add language to CMakeRobert Maynard2021-06-071-1/+10
|
* class cmake: Store working directory at cmake launchMarc Chevrier2021-05-111-0/+9
|
* cmake: add support for --toolchain command argumentRobert Maynard2021-04-151-0/+2
|
* cmake: add support for --install-prefix command argumentRobert Maynard2021-03-041-0/+2
| | | | Fixes: #21781
* C23 supportRaul Tambre2021-02-251-0/+1
|
* C17 supportRaul Tambre2021-02-251-0/+1
| | | | Implements #17755.
* cmake-presets: Add build and test presetsSam Freed2021-02-011-5/+5
| | | | Fixes: #21391
* CUDA, CXX, OBJCXX: C++23 support with Clang 12Raul Tambre2020-12-081-1/+3
| | | | | Clang 12 landed initial support for C++23 language mode flag -std={c|gnu}++2b in commit 6627a3c2873fdf7ccba1a1573371079be48b36e8.
* Merge topic 'cmake-presets-help-flag'Brad King2020-10-281-2/+0
|\ | | | | | | | | | | | | c619be2784 ccmake: Don't list --preset in --help Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5428
| * ccmake: Don't list --preset in --helpKyle Edwards2020-10-271-2/+0
| | | | | | | | | | | | And show available options in cmake-gui. Fixes: #21313
* | Constify some code as suggested by clang-tidyCengizhan Pasaoglu2020-10-191-8/+8
|/
* CMake: Add presets functionalityKyle Edwards2020-10-051-6/+48
|
* Refactor: Add allowArch parameter to cmake::CreateGlobalGenerator()Kyle Edwards2020-10-051-1/+1
|