summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | CMake: Add presets functionalityKyle Edwards2020-10-051-0/+1
| |
* | cmake_language: Add signature to DEFER calls to later timesBrad King2020-09-291-1/+1
| | | | | | | | Fixes: #19575
* | Tests: Update RunCMake.CommandLine to avoid duplicate custom commandsBrad King2020-09-012-10/+32
| | | | | | | | | | This test does not need to have the same custom command output generated by multiple independent targets. Revise the test to avoid that.
* | cmake: Change cmake_llvm_rc separator from -- to ++ to avoid conflictThomas Bernard2020-08-071-4/+4
| |
* | cmake: Add -E create_hardlinkSibi Siddharthan2020-07-1510-0/+49
| | | | | | | | | | Fixes: #20950 Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
* | Merge topic 'profiling-case-insensitive-command-names'Brad King2020-07-142-1/+18
|\ \ | |/ | | | | | | | | | | 7cf2f7d2af cmake: Store lowercase command names in profiling output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5007
| * cmake: Store lowercase command names in profiling outputCraig Scott2020-07-132-1/+18
| | | | | | | | | | | | | | This ensures commands can be properly aggregated by tools processing the profiling output. Fixes: #20946
* | Merge topic 'fileApiAddLanguageStandardBacktrace'Brad King2020-06-291-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 7d6861f367 fileapi: Extend codemodel targets with language standard ba835874a4 Add backtrace support for language standard e43486a639 cmGeneratorTarget: Clarify name of language property lookup helper Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4798
| * | fileapi: Extend codemodel targets with language standardJustin Goshi2020-06-261-1/+1
| | |
* | | cmake-install: implement default directory permissionsAsit Dhal2020-06-2520-0/+47
|/ / | | | | | | | | | | provide an argument for default directory permissions in cmake --install Fixes: #20700
* | cmake: add dedicated error for -E compare_files invalid argumentsAsit Dhal2020-06-153-0/+3
| | | | | | | | | | | | Return 2 when user provides invalid arguments Fixes: #20815
* | Tests: Add case for cmake --build with a failing targetBrad King2020-06-124-0/+5
| |
* | cmake: remove -E compare_files error message if files differAsit Dhal2020-06-102-2/+0
|/ | | | | | It is not an error for the files to be different. Fixes: #20803
* Merge topic 'fileApiAddPrecompileHeadersBacktrace'Brad King2020-05-251-1/+1
|\ | | | | | | | | | | | | | | | | | | 9f6d40ee23 fileapi: Extend codemodel targets with PRECOMPILE_HEADERS b698764a31 Tests: Add a PCH example to RunCMake.FileAPI codemodel-v2 b3812c0e54 Tests: Fix indentation in RunCMake.FileAPI cxx_exe.json 9c48804b69 PCH: Fix source group of per-architecture PCH headers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4684
| * fileapi: Extend codemodel targets with PRECOMPILE_HEADERSJustin Goshi2020-05-221-1/+1
| |
* | Merge topic 'third-parties-layout'Brad King2020-05-081-0/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | 2faa3f6c55 Refactoring: Third-parties public headers are under cm3p prefix 75e87e3db4 bootstrap: update list of problematic files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4705
| * | Refactoring: Third-parties public headers are under cm3p prefixMarc Chevrier2020-05-071-0/+0
| |/ | | | | | | Fixes: #20666
* | cmake: Allow arbitrary args passed to CMake scriptAlex Turbov2020-05-062-0/+4
|/
* cmake -E: add cat command.Johnny Jazeix2020-04-1510-0/+49
| | | | | | Concatenate files and print on the standard output. FIXES: #20557
* Merge topic 'llvm-rc-include-path'Brad King2020-04-071-8/+8
|\ | | | | | | | | | | | | 35a29ec827 llvm-rc: Restore include path for data after explicit preprocessing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4570
| * llvm-rc: Restore include path for data after explicit preprocessingThomas Bernard2020-04-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 1c2d031cbd (Add -E cmake_llvm_rc to preprocess files for llvm-rc, 2020-01-14, v3.17.0-rc1~24^2) with llvm-rc we explicitly preprocess RC source files and then compile separately without -I flags. This broke cases where the RC source references data files adjacent to itself or in the include path. This change adds the expansion of the include paths when calling the llvm-rc in order for the resource files to be picked up correctly by llvm-rc. Since the RC compiled file is first preprocessed, the file being compiled by llvm-rc resides in the build directory. In order for llvm-rc to find the resource data specified relative to the .rc file being compiled, the source file path is preppended in the include list so that the original source path takes priority over all the other includes paths specified. A space was added in the CMAKE_INCLUDE_FLAG_RC to make the include directive work properly for llvm-rc. Checks on the rc.exe showed that the syntax change doesn't affect it's proper operation. Fixes: #20529
* | Merge topic 'llvm-rc-stderr'Brad King2020-03-273-3/+4
|\ \ | |/ | | | | | | | | | | dc93cbb0d8 llvm-rc: Print stderr output when calling tools through cmake_llvm_rc Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4525
| * llvm-rc: Print stderr output when calling tools through cmake_llvm_rcThomas Bernard2020-03-263-3/+4
| | | | | | | | | | | | The stored error pipe is output if the program fails. Fixes: #20494
* | cmake: add command line options to output script profiling dataWouter Klouwen2020-03-0711-0/+49
|/ | | | | | | | | | | | | | | For users of CMake who want to optimize their scripts if they take a while to run, this commit adds the ability to output profiling data. To enable this output, it adds the two command line parameters to select the output path and format. This commit adds the first profiling format of type ``google-trace``, which is the output is a JSON file containing Duration events as per the Google Trace Format specification: https://docs.google.com/document/d/1CvAClvFfyA5R- PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#
* Add -E cmake_llvm_rc to preprocess files for llvm-rcThomas Bernard2020-02-049-0/+38
| | | | | | | | | llvm-rc requires preprocessed rc files. The CMake command line tool cmake_llvm_rc enables channing the preprocessor call and the resource compiler and make this appear as single compilation step. When llvm-rc is detected as resource compiler, the RC compilation step is set to use this command.
* trace: Add time and stack level to JSON output formatFrank Winklmeier2020-01-221-4/+8
| | | | | | | | Add the timestamp and stack depth of the function call to the JSON trace output format. This information can be useful for cmake profiling and call stack inspection (see e.g. https://github.com/volo-zyko/cmake-profile-stats). Improve unit test to allow for varying set of keys to check in trace lines.
* Merge topic 'trace-test-support-python26-and-older'Kyle Edwards2020-01-031-8/+13
|\ | | | | | | | | | | | | 00f25dacc0 trace: Directly parse commandline arguments without argparse Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4169
| * trace: Directly parse commandline arguments without argparseDaniel Mensinger2020-01-011-8/+13
| |
* | Tests: do not use the same variable name in nested loopsRolf Eike Beer2019-12-311-3/+3
|/ | | | Spotted by LGTM.com.
* trace: Add test for the JSON-v1 traceDaniel Mensinger2019-12-236-0/+103
|