summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine
Commit message (Collapse)AuthorAgeFilesLines
* Tests/RunCMake: Match dots more precisely, part 3AJIOB2025-10-2082-142/+142
|
* Tests/RunCMake: Match CMakeLists.txt file name more preciselyAJIOB2025-10-165-16/+16
|
* Tests/RunCMake: Match xxx.cmake file name more preciselyAJIOB2025-10-161-3/+3
|
* Tests/RunCMake: Match CMakeLists.txt file name more preciselyHanna Rusakovich2025-10-151-1/+1
|
* Tests: Add case covering `cmake -E env` with empty environment variableBrad King2025-10-083-0/+7
| | | | Issue: #27285
* Merge topic 'sequential-bom'Brad King2025-09-215-6/+9
|\ | | | | | | | | | | | | | | 54161c70d5 cmListFileLexer: Do not require files to be seekable Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !11162
| * cmListFileLexer: Do not require files to be seekableSergiu Deitsch2025-09-195-6/+9
| | | | | | | | | | | | Read the BOM sequentially and store the read bytes for later use if these do not correspond to a BOM. This allows FIFO to be used as input, e.g., for piping input or Bash process substitution.
* | Merge branch 'backport-vs2026' into vs2026Brad King2025-09-151-1/+1
|\ \ | |/ |/|
| * VS: Add Visual Studio 18 2026 generatorBrad King2025-09-151-1/+1
| | | | | | | | Closes: #27213
| * Merge topic 'normalize-toolchain-file' into release-4.1Brad King2025-06-2414-10/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | c393300e2b cmake: Restore acceptance of -DCMAKE_TOOLCHAIN_FILE=//... on non-Windows cf0f46ed85 Tests/RunCMake/CommandLine: Simplify --toolchain cases Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !10901
* | | cmake -E: Add copy_if_newer and copy_directory_if_newerBenjamin Buch2025-07-3112-0/+24
| | | | | | | | | | | | Fixes: #24923
* | | fileapi: Add codemodelVersion fields to target and directory objectsCraig Scott2025-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | This will allow JSON schemas for these two types of files to describe the version-specific content without requiring any outside information. Fixes: #27031
* | | Deprecate Visual Studio 14 2015 generatorBrad King2025-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.
* | | Merge topic 'normalize-toolchain-file'Brad King2025-06-2414-10/+10
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | c393300e2b cmake: Restore acceptance of -DCMAKE_TOOLCHAIN_FILE=//... on non-Windows cf0f46ed85 Tests/RunCMake/CommandLine: Simplify --toolchain cases Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !10901
| * cmake: Restore acceptance of -DCMAKE_TOOLCHAIN_FILE=//... on non-WindowsBrad King2025-06-233-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX specifies that two leading slashes have implementation-defined interpretation, so CMake 3.31 and below did not normalize away leading double slashes. However, most implementations simply treat a leading `//` as just `/`, so CMake 4.0 now normalizes them away when they do not correspond to a network path on Windows. This change exposed that we were not normalizing `CMAKE_TOOLCHAIN_FILE` before passing its value to `include()` the first time if it was not passed with the `FILEPATH` or `PATH` cache entry type. Fix that. Fixes: #27010
| * Tests/RunCMake/CommandLine: Simplify --toolchain casesBrad King2025-06-2312-10/+4
| |
* | Merge topic 'normalize-input-paths'Brad King2025-04-161-4/+25
|\ \ | |/ | | | | | | | | | | | | cd4e72ca08 Normalize PWD environment variable before using it Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !10659
| * Normalize PWD environment variable before using itBrad King2025-04-151-4/+25
| | | | | | | | | | | | | | | | | | In commit 5aed3ee49d (cmSystemTools: Add GetLogicalWorkingDirectory, 2024-10-28, v4.0.0-rc1~528^2~6) we incorrectly trusted `PWD` to be a normalized path so long as its realpath matches the current working directory. Fixes: #26870
* | IAR: Add support for C-STAT static analysisFelipe Torrezan2025-04-091-0/+1
| | | | | | | | | | | | | | The IAR platform offers an integrated static analysis tool named IAR C-STAT. Closes: #26844
* | Merge topic 'restore-home-tidle'Brad King2025-04-032-0/+22
|\ \ | |/ | | | | | | | | | | 01f92efeb0 Restore expansion of leading '~' as home directory in input paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10580
| * Restore expansion of leading '~' as home directory in input pathsBrad King2025-04-022-0/+22
| | | | | | | | | | | | | | | | | | | | | | This was accidentally dropped by commit 622596c6b2 (cmSystemTools: Re-implement ToNormalizedPathOnDisk without translation map, 2024-10-30, v4.0.0-rc1~528^2~5). Previously it was done by `CollapseFullPath`. `cm::PathResolver` intentionally does not expand `~` because it makes sense only for transforming input paths. Teach `ToNormalizedPathOnDisk` to handle it directly. Fixes: #26827
* | cmake: Friendlier message when trying to --build the wrong dirNikita Nemkin2025-02-072-2/+2
|/ | | | | | Also for --open. Fixes: #11166
* Remove optional arguments from else() and end*() commandsPeter Kokot2025-01-281-1/+1
| | | | | This adds a brief explanation of the optional condition in the `else()` and removes all legacy usages of `else()` and `end*()` commands.
* CMP0053: Remove support for OLD behaviorBrad King2025-01-203-50/+4
|
* Tests: Fix testing with MinGW without VS installedBrad King2025-01-154-4/+4
|
* fileapi: Report DEBUGGER_WORKING_DIRECTORY in codemodel-v2 target objectsGarrett Campbell2024-12-101-1/+1
| | | | Closes: #16478
* Tests/RunCMake/CommandLine: Match initial cache paths more preciselyBrad King2024-10-223-4/+5
|
* Tests/RunCMake: Update cmake_minimum_required versions to 3.10Brad King2024-10-035-5/+5
| | | | | For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.10 where possible.
* Drop Visual Studio 12 2013 generatorBrad King2024-08-284-12/+0
| | | | This generator has been deprecated since CMake 3.28. Remove it.
* Tests: Simplify tests for Visual Studio generatorsBrad King2024-08-281-13/+10
| | | | | | Since commit 03c31b0395 (Drop Visual Studio 9 2008 generator, 2024-05-06, v3.30.0-rc1~134^2), some tests do not need to be version-dependent.
* Merge topic 'cmake-list-cached-variables'Brad King2024-07-246-0/+38
|\ | | | | | | | | | | | | | | 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-236-0/+38
| | | | | | | | | | | | 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.
* | cmSystemTools: Add CMake config directoryMartin Duffy2024-07-035-0/+18
|/
* Fix crash in target-specific commands called from initial cache scriptBrad King2024-06-016-0/+57
| | | | Fixes: #26018
* Drop Visual Studio 9 2008 generatorBrad King2024-05-086-22/+0
| | | | This generator has been deprecated since CMake 3.27. Remove it.
* fileapi: Add CONFIGURE_DEPENDS glob info to cmakeFiles objectArctic Lampyrid2024-03-191-1/+1
| | | | | Fixes: #25668 Co-authored-by: Brad King <brad.king@kitware.com>
* 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