summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Source: Replace C headers with C++ onesRose2021-11-021-1/+0
| | | | In applicable areas only, of course.
* cmcmd: Write progress and tar errors directly to stderrBrad King2021-10-271-6/+4
| | | | | In these code paths, `cmSystemTools::Message` never has a callback set. Inline the non-callback implementation at call sites.
* bootstrap: Do not declare cmSystemTools functions that are not implementedBrad King2021-10-271-1/+5
| | | | Convert runtime error messages into compile-time errors.
* Source: fix many -Wmissing-prototypes warnings by marking functions staticSean McBride2021-10-251-2/+2
|
* Merge topic 'fix-ifdef-windows'Brad King2021-10-181-1/+1
|\ | | | | | | | | | | | | 40e73c5ac4 Source: Fix typo in _WIN32 preprocessor checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6631
| * Source: Fix typo in _WIN32 preprocessor checksBrad King2021-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | Since CMake's default compiler flags with MSVC include `-DWIN32` for historical reasons, a few preprocessor conditions were accidentally checking for `WIN32` instead of `_WIN32`. The corresponding blocks were left out when compiling official binaries for `cmake.org` because we hard-code compiler flags without `-DWIN32`. Fixes: #22764
| * Merge topic 'cmake-E-cat-binary' into release-3.19Brad King2020-10-151-9/+15
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Move helpers functions from cmStringAlgorithms.h to cmValue.hMarc Chevrier2021-09-211-0/+1
| | | | | | | | | | | | | | | Helpers functions related to cmValue semantic are now part of cmValue.h header.
* | | cmake: -E cat stops when an empty file is encounteredJohnny Jazeix2021-09-181-0/+2
| | | | | | | | | | | | Fixes: #22652
* | | LINK_WHAT_YOU_USE feature: externalize configurationMarc Chevrier2021-07-091-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Currently, this feature is only supported on ELF platforms. So, the property LINK_WHAT_YOU_USE will be ignored for other plateforms. Moreover, flags and commands are now controled by CMake variables. Fixes: #20174
* | | cmTransformDepfile: Add support for MSBuild AdditionalInputs formatBrad King2021-06-091-0/+2
| | |
* | | cmake_transform_depfile: Remove unused incomplete vstlog supportBrad King2021-06-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit b2c14bc774 (cmake -E: Add cmake_transform_depfile internal command, 2020-10-02, v3.20.0-rc1~684^2~2) a partial implementation for converting MSBuild "TLog" format files was added. However, it is unused and incomplete: * Does not enforce absolute paths as TLog docs require. * Does not upper-case paths as TLog docs recommend. * The TLog format semantics are not equivalent to `out: in`. Remove the unused TLog transform infrastructure to avoid confusion. Issue: #20286
* | | cmOutputConverter: Adopt relative path conversion helpersBrad King2021-05-171-4/+12
| | | | | | | | | | | | Move them up from cmLocalGenerator and out of cmStateDirectory.
* | | Windows: Use real artifact versioning symlinks if possibleGeorg Schwab2021-05-101-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | When cross compiling from Windows to a platform that uses SONAMEs, real symlinks are now created for the VERSION and SOVERSION links instead of copies, if the user has the necessary privileges. Fixes: #22128
* | | Source: Fix typos and spelling in commentsJosef Angstenberger2021-05-071-2/+2
| | |
* | | Xcode: Add support of DEPFILE for add_custom_command, part 2Marc Chevrier2021-04-171-0/+2
| | | | | | | | | | | | | | | | | | This MR extend the support of 'DEPFILE' to buildsystem version 1. Issue: #20286
* | | cmcmd: Improve error message from cmake_symlink_{library,executable}Brad King2021-04-151-8/+15
| | |
* | | Update CMake code using KWSys to account for Status return valuesBrad King2021-04-141-1/+1
| | | | | | | | | | | | | | | | | | KWSys as of 2021-04-14 changed the return type of `SystemTools` operations from `bool` to `Status`. Update our call sites. This may improve error reporting accuracy in a few places.
* | | Source: Reduce c_str() usagevvs314152021-03-131-10/+10
| | |
* | | bindexplib: remove stray debugging output when using llvm-nmBrad King2021-02-181-1/+0
| | | | | | | | | | | | | | | | | | Remove a debugging message left by commit c856d4556b (bindexplib: supporting llvm bitcode formats using llvm-nm, 2019-08-13, v3.16.0-rc1~161^2~1).
* | | clang-tidy: fix `readability-qualified-auto` warningsBen Boeckel2021-01-271-2/+2
| | |
* | | Ninja: add_custom_command(DEPFILE): Ensure dependencies consistencyMarc Chevrier2021-01-191-7/+29
| | | | | | | | | | | | Fixes: #21694
* | | Makefile dependencies: ensure long paths are used on WindowsMarc Chevrier2021-01-091-5/+4
| | |
* | | Code style: add missed explicit 'this->'Oleksandr Koval2021-01-051-2/+2
| | | | | | | | | | | | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* | | Makefiles: Add support of DEPFILE for add_custom_commandMarc Chevrier2020-12-231-0/+2
| | | | | | | | | | | | | | | Issue: #20286 Fixes: #21415
* | | Makefiles Generators: use compiler for dependencies generationMarc Chevrier2020-11-291-28/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each source compilation generates a dependencies file. These dependencies files are consolidated in one file per target. This consolidation is done as part of command 'cmake -E cmake_depends` launched before evaluation of makefile dependency graph. The consolidation uses the same approach as `CMake` dependencies management. Fixes: #21321
* | | Ninja: Exclude unused dyndep features during CMake bootstrapBrad King2020-11-161-1/+1
| | |
* | | MSVC: Suppress rc/mt/link output unless verbose is requestedOrgad Shaneh2020-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Output like the following is typically not interesting at all: LINK : program database F:\Project\Project.pdb missing; performing full link Creating library Project.lib and object Project.exp Fixes #21422
* | | llvm_rc: add llvm_rc option filter to correctly pick up all optionsThomas Bernard2020-10-281-3/+43
| | | | | | | | | | | | Fixes: #21315
* | | Merge topic 'remove-server-mode'Brad King2020-10-151-46/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-141-46/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-151-9/+15
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | | | | 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-141-1/+13
| | | | | | | | | | | | | | | | | | | | | Reset `std::cout` to write in binary mode with no encoding conversions. Co-Author: Brad King <brad.king@kitware.com> Fixes: #21295
| * | cmConsoleBuf: Factor out cout/cerr console buffer managementBrad King2020-10-141-8/+2
| | |
* | | cmake -E: Add cmake_transform_depfile internal commandKyle Edwards2020-10-131-0/+18
| |/ |/|
* | Merge topic 'bootstrap-ninja'Brad King2020-08-111-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 491dddfbde Bootstrap: Add support for Ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3652
| * | Bootstrap: Add support for NinjaKyle Edwards2020-08-101-1/+1
| | |
* | | cmake: Change cmake_llvm_rc separator from -- to ++ to avoid conflictThomas Bernard2020-08-071-2/+6
|/ /
* | cmake: Add -E create_hardlinkSibi Siddharthan2020-07-151-0/+29
| | | | | | | | | | Fixes: #20950 Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
* | Clean a few string conversionsVitaly Stakhovsky2020-07-091-12/+7
| |
* | cmake: add dedicated error for -E compare_files invalid argumentsAsit Dhal2020-06-151-1/+1
| | | | | | | | | | | | Return 2 when user provides invalid arguments Fixes: #20815
* | cmake: remove -E compare_files error message if files differAsit Dhal2020-06-101-2/+0
|/ | | | | | It is not an error for the files to be different. Fixes: #20803
* Refactoring: Third-parties public headers are under cm3p prefixMarc Chevrier2020-05-071-2/+1
| | | | Fixes: #20666
* Merge topic 'win-user-manifest-rc'Brad King2020-04-221-3/+12
|\ | | | | | | | | | | | | 7ca13e04fa Windows: Merge user-provided manifests into compiled resource Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4484
| * Windows: Merge user-provided manifests into compiled resourceKenney Phillis2020-04-211-3/+12
| | | | | | | | | | | | Previously we merged user-provided manifests only into the manifest file given to the linker. Merge them into the manifest file that is compiled as a resource too.
* | Refactoring: add cm::contains to <cmext/algorithm>Marc Chevrier2020-04-171-2/+1
| |
* | Merge topic 'cat_cmd_20557'Kyle Edwards2020-04-161-0/+35
|\ \ | | | | | | | | | | | | | | | | | | a625f30785 cmake -E: add cat command. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4600
| * | cmake -E: add cat command.Johnny Jazeix2020-04-151-0/+35
| |/ | | | | | | | | | | Concatenate files and print on the standard output. FIXES: #20557
* | clang-tidy: address bugprone-branch-clone lintsBen Boeckel2020-04-131-3/+2
|/ | | | | | | | | Arguably, many of these are bugs in `clang-tidy`. An if/else tree with other conditionals between cloned blocks may be relying on the intermediate logic to fall out of the case and inverting this logic may be non-trivial. See: https://bugs.llvm.org/show_bug.cgi?id=44165
* Merge topic 'llvm-rc-include-path'Brad King2020-04-071-5/+15
|\ | | | | | | | | | | | | 35a29ec827 llvm-rc: Restore include path for data after explicit preprocessing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4570