summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs-package-restore'Brad King2022-01-242-0/+2
|\ | | | | | | | | | | | | | | | | | | 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
| * cmGlobalVisualStudio10Generator: Auto restore NuGet packages.Carsten Rudolph2022-01-222-0/+2
| |
* | cmake: Warn about unnecessary paths on command lineRobert Maynard2022-01-203-0/+14
| | | | | | | | | | | | We can't make it an error as that would break existing behavior. Fixes: #23110
* | Tests: Fix RunCMake.CommandLine toolchain case command lineBrad King2022-01-202-2/+3
| |
* | Add tests that showcase cmake -S limitationsRobert Maynard2022-01-181-0/+13
|/
* FileAPI: Add information on file set installersKyle Edwards2021-10-271-1/+1
|
* Tests/RunCMake/CommandLine: Deal with locales that are different from Englishmakise-homura2021-10-151-0/+6
| | | | | | | | | | RunCMake/CommandLine has problems when ran using language setting differeng from English. This is due to test outputs being compared to English strings, which comparison obviously fails if this language is set to, e.g. Russian. This commit sets locale as "C" prior to running these tests, so messages while testing are generated in correct language and do not fail checks anymore.
* cmake: -E cat stops when an empty file is encounteredJohnny Jazeix2021-09-181-1/+2
| | | | Fixes: #22652
* Deprecate Visual Studio 10 2010 generatorBrad King2021-07-294-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 'doc-cmake-build-signature'Brad King2021-07-1414-14/+14
|\ | | | | | | | | | | | | 161f1f42d6 Help: Clarify 'cmake --build' signature alternatives Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6343
| * Help: Clarify 'cmake --build' signature alternativesBrad King2021-07-1314-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation added by * commit 4f4f2028b8 (Help: Add documentation for buildPresets and testPresets, 2021-01-13, v3.20.0-rc1~51^2~7) * commit 676ecf0d37 (cmake-presets: Add build and test presets, 2020-12-14, v3.20.0-rc1~51^2~6) used square brackets in the `cmake --build` signature to indicate non-optional alternatives, which is not a typical convention. A common convention is to use parentheses instead, but in this case it is probably clearer to list the two signatures separately. Fixes: #22413
* | cmake: Allow CMAKE_CONFIGURATION_TYPES to be set by environment variableBrad King2021-06-305-0/+16
| | | | | | | | | | | | | | | | When no `CMAKE_CONFIGURATION_TYPES` is explicitly specified while creating a new build tree, check for an environment variable of the same name. Issue: #20983
* | cmake: Allow CMAKE_BUILD_TYPE to be set by environment variableBrad King2021-06-305-0/+18
|/ | | | | | | When no `CMAKE_BUILD_TYPE` is explicitly specified while creating a new build tree, check for an environment variable of the same name. Issue: #20983
* VS: Add Visual Studio 17 2022 generatorBrad King2021-06-251-1/+1
| | | | Fixes: #22339
* cmake: Allow CMAKE_TOOLCHAIN_FILE to be set by environment variableBrad King2021-06-0312-0/+55
| | | | | When no `CMAKE_TOOLCHAIN_FILE` is explicitly specified while creating a new build tree, check for an environment variable of the same name.
* cmCommandLineArgument: OneOrMore mode supports `=` separatorRobert Maynard2021-05-191-2/+1
| | | | Fixes #22187
* cmCommandLineArgument: Understands which commands require partial matchingRobert Maynard2021-05-191-1/+1
| | | | | Allows us to provide better error messages when commands such as `--target` are passed invalid input.
* Merge topic 'cmake_build_and_install_command_error_when_given_bad_arguments'Brad King2021-05-1413-0/+30
|\ | | | | | | | | | | | | | | | | f78b167a23 cmCommandLineArgument: Provide more information syntax error messages 5aa0dec6b0 cmake: `--build` and `--install` error out when encountering bad flags 928cdb17c5 cmCommandLineArgument: Correctly record parsing failures Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6119
| * cmCommandLineArgument: Provide more information syntax error messagesRobert Maynard2021-05-132-2/+2
| |
| * cmake: `--build` and `--install` error out when encountering bad flagsRobert Maynard2021-05-1313-0/+30
| | | | | | | | Fixes #22186
* | cmSystemTools: Improve CreateLink and CreateSymlink error codesBrad King2021-05-075-6/+6
| | | | | | | | | | | | | | | | | | | | | | In commit 7f89053953 (cmSystemTools: Return KWSys Status from CreateLink and CreateSymlink, 2021-04-15) we just took the `-err` from libuv and treated it as a POSIX error. This is accurate on POSIX, but on Windows does not match the POSIX error codes. Use `uv_fs_get_system_error` to get the actual system error code. This requires libuv 1.38 or higher. Require that for Windows, but fall back to the previous approach on POSIX.
* | MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-261-2/+2
| | | | | | | | Detect MSYS as CYGWIN, with the required adaptations.
* | Merge topic 'mrjoel/add-missing-not'Brad King2021-04-191-1/+1
|\ \ | |/ | | | | | | | | | | 370bebd921 Add missing 'not' in error messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6012
| * Add missing 'not' in error messagesJoel Johnson2021-04-161-1/+1
| |
* | cmake: add support for --toolchain command argumentRobert Maynard2021-04-1511-1/+36
| |
* | Merge topic 'correct_arg_parsing'Brad King2021-03-293-0/+6
|\ \ | |/ | | | | | | | | | | 79d7bcaf40 cmCommandLineArgument: correctly compute next parse index Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5936
| * cmCommandLineArgument: correctly compute next parse indexRobert Maynard2021-03-263-0/+6
| | | | | | | | | | | | | | Fixes #21966 Correctly compute the next parse index for `ZeroOrOne` when it is zero, and for OneOrMore.
* | fileapi: Add a "directory" object to codemodel-v2Brad King2021-03-161-1/+1
| | | | | | | | | | | | This object will contain more detailed directory-level information. Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* | cmake: configure preset add support for --install-prefix mappingRobert Maynard2021-03-092-0/+2
| |
* | cmake: add support for --install-prefix command argumentRobert Maynard2021-03-041-0/+3
|/ | | | Fixes: #21781
* Tests: Update RunCMake/CommandLine BuildDirSam Freed2021-02-0411-11/+11
|
* Merge topic 'fileapi-toolchains'Brad King2021-01-141-1/+1
|\ | | | | | | | | | | | | | | | | | | 6418dabb87 Tests: Add test for toolchains-v1 File API object 1c5bd1bed5 Tests: Add toolchains kind to capabilities test f72bb2ee0d Help: Add documentation for "toolchains" object kind bb069c0857 cmFileAPI: Add "toolchains" object kind. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5678
| * Tests: Add toolchains kind to capabilities testBen McMorran2021-01-121-1/+1
| |
* | Merge topic 'trace_expand_bracket'Brad King2021-01-121-0/+1
|\ \ | |/ |/| | | | | | | | | e6e7f2cab9 cmMakefile: Don't expand bracket arguments in --trace-expand Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5687
| * cmMakefile: Don't expand bracket arguments in --trace-expandRaul Tambre2021-01-111-0/+1
| | | | | | | | | | | | Bracket arguments are literal and shouldn't be expanded. Fixes #21671.
* | cmDepends: merge dependers of depend makefileKai Wang2021-01-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | Since one depender has multiple dependees, depend makefile generated same depender line by line, to reduce file size and refine make file parse speed, merge same dependers to one. And add a testcase for large depend.make which generated source file includes 20000 header files and run build and incremental build Signed-off-by: Wangkai <wangkai86@huawei.com> Signed-off-by: Zhaoyingdong <zhaoyingdong@huawei.com>
* | cmake: Error out on unknown arguments starting with `-`.Robert Maynard2020-12-015-0/+8
| | | | | | | | Fixes: #21521
* | cmake: redesign command-line argument parsingRobert Maynard2020-11-196-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make handling more consistent: "-S" -> invalid "-S/path/to/source" -> valid "-S /path/to/source" -> valid "-S=/path/to/source" -> now valid "-D" -> invalid "-DStr" -> valid "-D Str" -> valid "-D=Str" -> now valid "--log-level=" -> invalid "--log-level" -> invalid "--log-level=2" -> valid "--log-level 2" -> now valid
* | cmake: Fix processing of -Wno-error= flagsBrad King2020-11-171-0/+4
| | | | | | | | | | Fix two bugs that happened to cancel each other out for cases covered by our test suite. Add a test case that distinguishes them.
* | Merge topic 'llvm-rc-CMAKE_RC_FLAGS'Brad King2020-10-291-1/+1
|\ \ | | | | | | | | | | | | | | | | | | ea03f50842 llvm_rc: add llvm_rc option filter to correctly pick up all options Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5412
| * | llvm_rc: add llvm_rc option filter to correctly pick up all optionsThomas Bernard2020-10-281-1/+1
| | | | | | | | | | | | Fixes: #21315
* | | Merge topic 'xcode_build_jobs'Brad King2020-10-281-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e794509faa XCode: Use -j build option when job capacity is specified by user Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5429
| * | | XCode: Use -j build option when job capacity is specified by userFred Baksik2020-10-261-2/+2
| |/ / | | | | | | | | | Fixes: #18304
* | | Merge topic 'cmake-presets-path-arg'Craig Scott2020-10-271-1/+0
|\ \ \ | |/ / |/| / | |/ | | | | | | 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-1/+0
| | | | | | | | | | | | | | | | 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
| * Merge topic 'cmake-E-cat-binary' into release-3.19Brad King2020-10-154-0/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows 90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5364
* | \ Merge topic 'remove-server-mode'Brad King2020-10-157-6/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9952ee063a server: remove deprecated 'cmake -E server' mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !5370
| * | | server: remove deprecated 'cmake -E server' modeBrad King2020-10-147-6/+3
| |/ / | | | | | | | | | | | | | | | The server mode has been deprecated since commit 996e1885c4 (server: deprecate in favor of the file-api, 2019-04-19, v3.15.0-rc1~198^2). Clients should now be using the file-api. Remove the server mode.
* | | Merge topic 'cmake-E-cat-binary'Brad King2020-10-154-0/+5
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows 90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5364
| * cmake: Fix '-E cat' command for binary files on WindowsJohnny Jazeix2020-10-144-0/+5
| | | | | | | | | | | | | | Reset `std::cout` to write in binary mode with no encoding conversions. Co-Author: Brad King <brad.king@kitware.com> Fixes: #21295