summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
Commit message (Collapse)AuthorAgeFilesLines
* preset: Easier command line interface for Workflow PresetsKevin Tolle2024-10-051-1/+6
| | | | | | | A positional option allows 'cmake --workflow --preset <preset>' to be shortened to 'cmake --workflow <preset>'. Fixes: #26270
* Merge topic 'fileapi-config-dir'Brad King2024-08-261-1/+3
|\ | | | | | | | | | | | | | | | | | | 1df94443fe fileapi: Add support for user-wide queries a991a5019b Tests: Isolate test suite from user-wide configuration 320b81847d Tests: Remove unused cvs anonymous access credentials Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9744
| * fileapi: Add support for user-wide queriesMartin Duffy2024-08-221-1/+3
| | | | | | | | Fixes: #19168
* | Refactor: Optimize some `std::ostream::operator<<()` callsAlex Turbov2024-08-191-1/+1
| |
* | Merge topic 'help-options'Brad King2024-08-191-3/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | b5b36f95f9 Help: Add clarifying text for some help options Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9706
| * | Help: Add clarifying text for some help optionsMartin Duffy2024-08-151-3/+7
| |/ | | | | | | Fixes: #26193
* | Refactor: `… << "\n" << std::flush;` → `… << std::endl;`Alex Turbov2024-08-131-2/+2
|/
* Merge topic 'install-parallel-manifest'Brad King2024-07-261-1/+1
|\ | | | | | | | | | | | | | | 9799491c7e install: Write manifest file in parallel install Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9673
| * install: Write manifest file in parallel installMartin Duffy2024-07-251-1/+1
| | | | | | | | Updates the parallel install to generate the install_manifest.txt file.
* | Merge topic 'cmake-list-cached-variables'Brad King2024-07-241-5/+44
|\ \ | |/ |/| | | | | | | | | | | c55239e286 cmake: Add flag to list cache entries matching a regex Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9644
| * cmake: Add flag to list cache entries matching a regexMin Hsu2024-07-231-5/+44
| | | | | | | | | | | | Add a `-LR[A][H] <regex>` flag with similar functionality to `-L[A][H]`, but instead of listing all cached variables, it show only specific variables that match the name regex.
* | Merge topic 'parallel-install'Brad King2024-07-181-17/+50
|\ \ | | | | | | | | | | | | | | | | | | | | | 159ba027b9 Install: Add parallel installation option Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9611
| * | Install: Add parallel installation optionMartin Duffy2024-07-151-17/+51
| | | | | | | | | | | | Fixes: #26000
* | | Merge topic 'xdg-config-dir'Brad King2024-07-081-0/+8
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | 5b3fbd5f64 cmSystemTools: Add CMake config directory Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9615
| * | cmSystemTools: Add CMake config directoryMartin Duffy2024-07-031-0/+8
| |/
* | cmake: Print --workflow option in --help outputBrad King2024-07-021-1/+2
|/ | | | | This was missed in commit 374d82bbcd (cmake: Add --workflow mode, 2022-09-16, v3.25.0-rc1~76^2).
* cmakemain: Return the SCRIPT_MODE exit code if it was setleha-bot2024-01-161-4/+7
| | | | | | | We determine it via checking cmake.Run() return code and ScriptModeExitCode. If ScriptModeExitCode is zero, then we would return 1 if retcode was non-zero. Otherwise it will be returned if retcode was also non-zero.
* cmake: Add debuggerGlen Chung2023-05-301-0/+6
| | | | | | | | | | | | | | | | - 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>
* CMake code rely on cmList class for CMake lists management (part. 1)Marc Chevrier2023-04-241-1/+2
|
* cmake: Stop parsing after `--` when detecting script modeRobert Maynard2023-02-081-5/+7
| | | | | | | | The fix in commit 08aa516880 (cmake: Stop parsing after `--` when detecting script mode, 2022-12-06, v3.26.0-rc1~216^2) only corrected the case where `-P -- -P <arg>` occurred and not `-P -- -P -<other>`. Fixes: #24220
* cmake: Stop parsing after `--` when detecting script modeRobert Maynard2022-12-061-0/+5
| | | | Fixes #24220
* cmDocumentationEntry: Drop all user provided ctors for C++ >= 14Alex Turbov2022-11-171-4/+6
| | | | | | | | | | | There is no need for them cuz: - the last field has a default value - all static instances use 2 arguments convertible to `std::string` - "dynamic" instances used for _Generator_ doc entries access fields diectly using default constructed instance Moreover, compiler may generate move ctor/assign when needed.
* cmDocumentation: `char*[][2]` → `cmDocumentationEntry[N]`Alex Turbov2022-11-171-14/+10
| | | | | | | | | | 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.
* ctest.cxx: Eliminate redundand trenary operatorAlex Turbov2022-11-171-1/+1
|
* cmakemain.cxx: Remove always true preprocessor `#if` blockAlex Turbov2022-11-171-2/+0
|
* cmake: --build improve detection of no build dirRobert Maynard2022-11-141-19/+7
| | | | Fixes #24157
* Merge topic 'cmake-presets-workflow-arguments'Brad King2022-10-271-5/+27
|\ | | | | | | | | | | | | | | | | | | | | 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/+10
| | | | | | | | Fixes: #24073
| * cmake::Workflow: Refactor to use enum class argumentKyle Edwards2022-10-261-4/+8
| |
| * cmake --workflow: print usage and exit on unrecognized argumentKyle Edwards2022-10-261-0/+2
| | | | | | | | Issue: #24073
| * cmake --workflow: print usage messageKyle Edwards2022-10-251-1/+8
| |
* | cmake: Honor CMAKE_GENERATOR env var in --help outputJuan Ramos2022-10-211-1/+1
|/
* cmake: Add --workflow modeKyle Edwards2022-09-271-0/+65
| | | | Fixes: #23118
* Help: Use placeholder instead of listing choices in option linesAlex Turbov2022-08-141-6/+5
| | | | | This avoids any ambiguity with whether the choices are literal values or not. It also makes the option lines more concise.
* Help: Short options first, then long, then Windows styleAlex Turbov2022-08-141-2/+2
|
* Help: Value for `--graphviz=` option actually is mandatoryAlex Turbov2022-08-041-1/+1
| | | | Before it was `[file]` that AFAIK means optional.
* cmake: In -P mode ignore flags like `--version` after `--`Robert Maynard2022-07-221-1/+1
| | | | Fixes: #21031
* clang-tidy: address `google-readability-casting` lintsBen Boeckel2022-05-241-2/+2
| | | | At least those involving `static_cast`.
* Merge topic 'ignore-werror-command-arg'Brad King2022-05-191-0/+3
|\ | | | | | | | | | | | | 65f7053d6c COMPILE_WARNING_AS_ERROR: Add command-line option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7268
| * 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
* | Refactor: Use cmCommandLineArgument::setTo{True,Value}()Kyle Edwards2022-04-181-68/+19
| |
* | Merge topic 'correct_list-presets_parsing'Brad King2022-04-121-2/+3
|\ \ | |/ |/| | | | | | | | | | | 45299a8f9b cmake: --list=presets=[type] doesn't generate incorrect warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7164
| * cmake: --list=presets=[type] doesn't generate incorrect warningsRobert Maynard2022-04-111-2/+3
| | | | | | | | Fixes #23407
* | cmake: Add --fresh option to clear the cache and start from scratchBrad King2022-03-221-0/+2
|/ | | | | | | 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 --build: prioritize --resolve-package-references over presetCarsten Rudolph2022-02-151-1/+1
| | | | Fixes: #23224
* Merge topic 'message-flush'Brad King2022-01-281-2/+2
|\ | | | | | | | | | | | | 634587e322 message: Restore explicit flushing of messages on stderr Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6913
| * message: Restore explicit flushing of messages on stderrBrad King2022-01-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the `cmake` command-line tool, the `message()` command with no message mode argument prints the message stderr using the C++ `cerr` stream. Since commit 0a0a0f8a74 (cmMessenger: Color messages to terminal by type, 2021-05-18, v3.21.0-rc1~146^2) and an update by commit c7a8c9c811 (cmMessenger: Revert to non-color messages on Windows, 2021-07-20, v3.21.1~15^2), we print the newline at the end of the message using just `\n`. We've now observed some cases of output on stdout and stderr getting jumbled when the two go to the same file descriptor. Previously the newline was printed with `endl`, which implicitly flushes. Flush explicitly to restore that behavior. Fixes: #23155
* | cmGlobalVisualStudio10Generator: Auto restore NuGet packages.Carsten Rudolph2022-01-221-0/+23
| |
* | cmBuildOptions: Split build arguments into separate object.Carsten Rudolph2022-01-221-1/+3
| |
* | cmake: Add filtered debug-find optionsJohn Parent2021-12-171-0/+4
| | | | | | | | | | | | | | | | | | | | 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