summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Allow CMAKE_INSTALL_PREFIX to be set by environment variableSilvio Traversaro2024-01-307-0/+23
| | | | Fixes: #25023
* file: `STRINGS` + `REGEX` store match resultsCristian Le2024-01-091-0/+1
| | | | Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
* fileapi: Add cross-compiling emulator to codemodel-v2Ralf Habacker2023-12-011-1/+1
| | | | Fixes: #25408
* Merge topic 'cmake-E-cat-stdin'Brad King2023-11-063-0/+13
|\ | | | | | | | | | | | | | | ab72846794 cmake -E cat: Add ability to print standard input Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8942
| * cmake -E cat: Add ability to print standard inputKyle Edwards2023-11-033-0/+13
| |
* | cmSystemTools::RunSingleCommand(): Pass stdin to child processKyle Edwards2023-11-023-0/+6
|/ | | | Fixes: #25383
* Merge topic 'help-arbitrary'Brad King2023-09-292-0/+9
|\ | | | | | | | | | | | | | | 4e50320978 Help: Allow help for arbitrary keywords Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8674
| * Help: Allow help for arbitrary keywordsMartin Duffy2023-09-272-0/+9
| | | | | | | | | | Changes `cmake --help [arg]` to search `Help/*/` instead of `Help/command/` Allows editors to easily display manual for `<cword>`
* | cmake: Clarify error if -P script does not existscivision2023-09-185-5/+6
|/
* Deprecate Visual Studio 12 2013 generatorBrad King2023-06-264-0/+12
| | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
* Drop Visual Studio 11 2012 generatorBrad King2023-06-134-12/+0
| | | | This generator has been deprecated since CMake 3.25. Remove it.
* cmake: Add debuggerGlen Chung2023-05-3018-1/+37
| | | | | | | | | | | | | | | | - 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>
* fileapi: Extend codemodel targets/compileGroups with Apple frameworksMarc Chevrier2023-05-191-1/+1
| | | | Fixes: #19897
* cmake -E time: use C++11 chrono and better format outputscivision2023-02-151-1/+1
| | | | fixes #24415
* Tests/RunCMake: Update cmake_minimum_required versionsBrad King2023-02-117-9/+9
| | | | | | | | For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
* Merge topic 'vs9-deprecate'Brad King2023-02-094-0/+12
|\ | | | | | | | | | | | | d7f440c5db Deprecate Visual Studio 9 2008 generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8181
| * Deprecate Visual Studio 9 2008 generatorBrad King2023-02-084-0/+12
| | | | | | | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
* | cmake: Stop parsing after `--` when detecting script modeRobert Maynard2023-02-082-0/+11
|/ | | | | | | | 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
* Revise C++ coding style using clang-format-15Kitware Robot2023-01-181-0/+1
| | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* clang-format.bash: Use generic clang-format attributeBrad King2023-01-181-1/+1
| | | | | | | Specify the clang-format version in the attribute value instead of its name. Issue: #24315
* cmake: Add -E copy_directory_if_differentRobert Maynard2023-01-121-0/+9
| | | | Fixes #21584
* FileAPI: Add "configureLog" object kindBrad King2022-12-171-1/+1
| | | | | | | Provide clients with a way to get a known set of configure log event versions. Issue: #23200
* Merge topic 'clang-tidy-export-fixes-dir'Brad King2022-12-073-0/+5
|\ | | | | | | | | | | | | | | 232467eb1c clang-tidy: add <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR property Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7982
| * clang-tidy: add <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR propertyKyle Edwards2022-12-063-0/+5
| | | | | | | | Fixes: #21362
* | cmake: Stop parsing after `--` when detecting script modeRobert Maynard2022-12-062-0/+11
|/ | | | Fixes #24220
* Merge topic 'cmake-E-copy-t-mode'Brad King2022-11-153-0/+8
|\ | | | | | | | | | | | | 8d9069e5b6 cmake -E copy: Add support for -t argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7913
| * cmake -E copy: Add support for -t argumentKyle Edwards2022-11-153-0/+8
| | | | | | | | Fixes: #23543
* | Merge topic 'better_handling_of_build_args'Brad King2022-11-153-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 01611f8258 cmake: --build improve detection of no build dir Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7908
| * | cmake: --build improve detection of no build dirRobert Maynard2022-11-143-0/+4
| |/ | | | | | | Fixes #24157
* | project: Warn at top-level if `cmake_minimum_required` wasn't calledfriendlyanon2022-11-111-0/+2
|/ | | | | | | The top-level project() call will now issue an AUTHOR_WARNING if it wasn't called after cmake_minimum_required(). Fixes: #24071
* file-api: support exporting file set informationBen Boeckel2022-11-081-1/+1
| | | | | | | This includes listing the filesets themselves as well as which file set (if any) each source file is associated with. Fixes: #24128
* Tests: Provide RunCMake.CommandLine compare_files data more robustlyBrad King2022-10-312-3/+3
| | | | | | | | The `lf` and `crlf` files need to have exact LF and CRLF newlines, respectively. Previously we used the Git `eol` attribute for this, but occasionally the Git work tree ends up without the conversion. It is unclear why that happens, so try to avoid the problem by treating their content as binary instead.
* cmake: Honor CMAKE_GENERATOR env var in --help outputJuan Ramos2022-10-214-0/+11
|
* try_compile: Propagate --trace through try_compileMatthew Woehlke2022-10-115-0/+23
| | | | | Add ability to specify another cmake instance from which to get the trace output target. Use this during try_compile.
* try_compile: Report build dir with --debug-trycompileMatthew Woehlke2022-10-061-0/+11
| | | | | | | | When `--debug-trycompile` is enabled, issue a log (with trace) for every `try_compile` noting what directory is being used for the compilation. This will make it easier to find the corresponding artifacts. Closes: #24022
* Deprecate Visual Studio 11 2012 generatorBrad King2022-09-274-0/+12
| | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
* Tests: Drop unused files from RunCMake.CommandLineBrad King2022-09-272-0/+0
| | | | | Remove files missed by commit 8d6f015d59 (Drop Visual Studio 10 2010 generator, 2022-09-26).
* Drop Visual Studio 10 2010 generatorBrad King2022-09-262-12/+0
| | | | This generator has been deprecated since CMake 3.22. Remove it.
* Merge topic 'modules-use-new-try_compile-signature'Brad King2022-09-143-1/+14
|\ | | | | | | | | | | | | 2edf0fc6d7 Modules: Use new keyword-dispatched try_compile signature Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7656
| * Modules: Use new keyword-dispatched try_compile signatureMatthew Woehlke2022-09-143-1/+14
| | | | | | | | | | | | | | | | | | | | | | Modify most of the modules that ship with CMake to use the new try_compile / try_run signatures added by commit aa9220d3a0 (try_compile: Add keyword-dispatched signature, 2022-09-02). This improves debugging by each invocation using its own directory so that the results of multiple invocations can be retained. This does not cover any invocations which provide an entire project, as that flavor of try_compile has not yet been updated.
* | Tests: Fix RunCMake.CommandLine test in unusual environmentsMatthew Woehlke2022-09-121-1/+6
|/ | | | | | Modify `Tests/RunCMake/CommandLine/P_working-dir.cmake` to not spuriously fail in environments when the build directory's nominal path is not canonicalized (i.e. `realpath(BINDIR) != BINDIR`).
* cmake -E capabilities: Tell whether TLS is enabledKyle Edwards2022-09-011-1/+1
| | | | Fixes: #20507
* cmake -E env: Add --modify flagAlex Reinking2022-08-1714-0/+83
| | | | | | | | | | | | | | | | | | | | | | When `cmake -E env` is given the `--modify` flag, try to parse the following argument as an `ENVIRONMENT_MODIFICATION` operation and apply it to the environment. This generalizes `--unset=`: 1. When implementing `ENVIRONMENT_MODIFICATION` features for other CMake commands, the `MYVAR=OP:VALUE` strings do not need to be translated to OP-specific flags. 2. This provides a natural and consistent extension point to introduce new operations without introducing very many flags. 3. Users need to learn only one syntax to access the same functionality. There is one difference between the behavior here as compared to CTest's interpretation of the `ENVIRONMENT_MODIFICATION` test property. The `MYVAR=reset:` command when run in `cmake -E env` will reset `MYVAR` to whatever its value was when `cmake -E env` launched, rather than try to checkpoint after plain `MYVAR=VALUE` options. This makes `MYVAR=VALUE` and `--modify MYVAR=set:VALUE` semantically equivalent.
* Merge topic 'cmake-help-flags-after-dashdash'Brad King2022-07-253-3/+5
|\ | | | | | | | | | | | | 14a0e750cb cmake: In -P mode ignore flags like `--version` after `--` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7496
| * cmake: In -P mode ignore flags like `--version` after `--`Robert Maynard2022-07-223-3/+5
| | | | | | | | Fixes: #21031
* | Merge topic 'cmake-P-path-args'Brad King2022-07-253-0/+13
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | febe3190f0 Merge branch 'backport-3.23-cmake-P-path-args' 846a650ff7 cmake: In -P mode ignore extra paths on the command line c362cba566 cmake: simplify to a single source of truth of working mode 261fa5db39 cmake: In -P mode ignore extra paths on the command line 314135cdf1 cmake: simplify to a single source of truth of working mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7494
| * cmake: In -P mode ignore extra paths on the command lineRobert Maynard2022-07-223-0/+13
| | | | | | | | Fixes: #23748
* | Makefiles generator: dependencies messages in verbose modeMarc Chevrier2022-07-062-3/+3
|/ | | | Fixes: #23689
* Tests: Fix test failures for Windows Arm64 platformsNiyas Sait2022-05-111-1/+1
|
* CMake: Use FindPython instead of FindPythonInterp to build CMake itselfKyle Edwards2022-04-212-4/+4
| | | | Fixes: #23444