summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* cmStringAlgorithms: Add cmStrToLong and cmStrToULongSebastian Holtermann2019-08-1018-58/+70
| | | | | | | | This adds the following functions to cmStringAlgorithms: - `cmStrToLong`: moved from `cmSystemTools::StringToLong` - `cmStrToULong`: moved from `cmSystemTools::StringToULong` Overloads of the given functions for `std::string` are added as well.
* CMake Nightly Date StampKitware Robot2019-08-101-1/+1
|
* Merge topic 'cmFileCommand-refactoring'Brad King2019-08-0912-528/+551
|\ | | | | | | | | | | | | | | | | | | | | a7a5f376bc cmFileCommand: Use cmSubcommandTable b66b7464ab Introduce cmSubcommandTable 2b785875fb cmFileCommand: turn into free function 9703c65718 cmFileCommand: put subcommands in unnamed namespace 64f987c174 cmFileCommand: port to cmExecutionStatus Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3657
| * cmFileCommand: Use cmSubcommandTableRegina Pfeifer2019-08-061-116/+119
| |
| * Introduce cmSubcommandTableRegina Pfeifer2019-08-063-0/+69
| |
| * cmFileCommand: turn into free functionRegina Pfeifer2019-08-063-29/+5
| |
| * cmFileCommand: put subcommands in unnamed namespaceDaniel Pfeifer2019-08-064-272/+198
| |
| * cmFileCommand: port to cmExecutionStatusDaniel Pfeifer2019-08-066-359/+408
| |
* | Merge topic 'cmDefinitions_cleanups'Brad King2019-08-092-35/+42
|\ \ | | | | | | | | | | | | | | | | | | 1a47d368d8 cmDefinitions: Cleanups and optimizations Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3666
| * | cmDefinitions: Cleanups and optimizationsSebastian Holtermann2019-08-082-35/+42
| | | | | | | | | | | | | | | | | | | | | In cmDefinitions: - sort methods in source code by static or not static - use `std::unordered_set<cm::string_view>` instead of `std::set<std::string>` for duplications tests.
* | | Merge topic 'autogen_cmStrCat'Brad King2019-08-097-285/+174
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ca2923110c Autogen: Modernize to use cmStrCat for string concatenation d02a99d9d3 Autogen: Modernize code to use cm::string_view for the info writer Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3663
| * | | Autogen: Modernize to use cmStrCat for string concatenationSebastian Holtermann2019-08-076-258/+151
| | | |
| * | | Autogen: Modernize code to use cm::string_view for the info writerSebastian Holtermann2019-08-072-27/+23
| | | |
* | | | Merge topic 'execution-status'Brad King2019-08-093-13/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5558070d52 cmExecutionStatus: Remove function Clear Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3654
| * | | | cmExecutionStatus: Remove function ClearRegina Pfeifer2019-08-063-13/+2
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2019-08-091-1/+1
| |_|/ / |/| | |
* | | | CMake Nightly Date StampKitware Robot2019-08-081-1/+1
| |/ / |/| |
* | | Merge topic 'tidy_inefficient_string'Brad King2019-08-0740-154/+149
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 18b0330b86 clang-tidy: Enable performance-inefficient-string-concatenation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3648
| * | | clang-tidy: Enable performance-inefficient-string-concatenationSebastian Holtermann2019-08-0540-154/+150
| |/ / | | | | | | | | | | | | | | | | | | Enables the clang-tidy test performance-inefficient-string-concatenation and replaces all inefficient string concatenations with `cmStrCat`. Closes: #19555
* | | Merge topic 'cmStringAlgorithms_move_functions'Brad King2019-08-0723-126/+124
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 959b97a27f Tests: testStringAlgorithms: Add cmTrimWhitespace, cmEscapeQuotes, cmTokenize 7fbcc16dcd cmStringAlgorithms: cmIsSpace, cmTrimWhitespace, cmEscapeQuotes, cmTokenize Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3647
| * | | cmStringAlgorithms: cmIsSpace, cmTrimWhitespace, cmEscapeQuotes, cmTokenizeSebastian Holtermann2019-08-0523-126/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the following functions to `cmStringAlgorithms`: - `cmIsSpace` - `cmTrimWhitespace` (moved from `cmSystemTools::TrimWhitespace`) - `cmEscapeQuotes` (moved from `cmSystemTools::EscapeQuotes`) - `cmTokenize` (moved from `cmSystemTools::tokenize` and adapted to accept `cm::string_view`)
* | | | Merge topic 'find_package-prefer-config-not-found'Brad King2019-08-071-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8ed868606d find_package: Fix prefer-config mode to not fail on missing optional package Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3653
| * | | | find_package: Fix prefer-config mode to not fail on missing optional packageCristian Adam2019-08-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `CMAKE_FIND_PACKAGE_PREFER_CONFIG` mode was set to `ON`, failure to find a package was fatal even if it was not `REQUIRED`. Fix this and add a test case. Fixes: #19557
* | | | | CMake Nightly Date StampKitware Robot2019-08-071-1/+1
| |_|_|/ |/| | |
* | | | CMake Nightly Date StampKitware Robot2019-08-061-1/+1
| |_|/ |/| |
* | | Merge topic 'control-block3'Brad King2019-08-0516-540/+437
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 41364824ad cmFunctionBlocker: Recycle functions 6491270e0d cmFunctionBlocker: Move check for matching args af24e4ef6e cmFunctionBlocker: Move common logic to base ef38ff22f7 cm*FunctionBlocker: Extract function Replay b51fba6298 cmMakefile: Add OnExecuteCommand callback c76500949d cm*FunctionBlocker: Move to source file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3632
| * | | cmFunctionBlocker: Recycle functionsRegina Pfeifer2019-07-317-20/+18
| | | |
| * | | cmFunctionBlocker: Move check for matching argsRegina Pfeifer2019-07-309-100/+65
| | | |
| * | | cmFunctionBlocker: Move common logic to baseRegina Pfeifer2019-07-309-169/+77
| | | |
| * | | cm*FunctionBlocker: Extract function ReplayRegina Pfeifer2019-07-305-227/+272
| | | |
| * | | cmMakefile: Add OnExecuteCommand callbackRegina Pfeifer2019-07-303-31/+17
| | | | | | | | | | | | | | | | | | | | In cmCTestScriptHandler, port away from cmFunctionBlocker and update the elapsed time with the new callback instead.
| * | | cm*FunctionBlocker: Move to source fileRegina Pfeifer2019-07-3010-90/+85
| | | |
* | | | Merge topic 'cleanup_cmake_constructor'Brad King2019-08-052-54/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0962589627 cmake: Initialize booleans at declaration and cleanup constructor Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3646
| * | | | cmake: Initialize booleans at declaration and cleanup constructorSebastian Holtermann2019-08-032-54/+31
| | | | |
* | | | | Merge topic 'shared-deps-no-iface'Brad King2019-08-052-7/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d75cad01f0 Fix rpath-link for shared lib with only private deps 4b2e1fc9ee cmGeneratorTarget: Use local var to de-duplicate CMP0022 checks 94648953be cmLinkItem: Simplify tracking of whether link interface is explicit Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3642
| * | | | | Fix rpath-link for shared lib with only private depsBrad King2019-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under CMP0022 NEW behavior, the link interface is explicit even if there are no public dependencies (`INTERFACE_LINK_LIBRARIES` is not set). Mark it as such to activate our tracking of private runtime dependencies of shared libraries for generation of `-rpath-link` flags. Fixes: #19556
| * | | | | cmGeneratorTarget: Use local var to de-duplicate CMP0022 checksBrad King2019-08-021-4/+4
| | | | | |
| * | | | | cmLinkItem: Simplify tracking of whether link interface is explicitBrad King2019-08-022-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | We now only need a boolean.
* | | | | | Merge topic 'link-library-file-flag'Brad King2019-08-053-10/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f6d6dbc293 Make CMAKE_LINK_LIBRARY_FILE_FLAG work like CMAKE_LINK_LIBRARY_FLAG Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3641
| * | | | | | Make CMAKE_LINK_LIBRARY_FILE_FLAG work like CMAKE_LINK_LIBRARY_FLAGBrad King2019-08-023-10/+6
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `CMAKE_LINK_LIBRARY_FILE_FLAG` variable is meant for linkers that want library file paths to be preceded by a flag. This is used only for OpenWatcom to add the `library` argument before library file paths. Refactor the approach to treat `CMAKE_LINK_LIBRARY_FILE_FLAG` as a command-line string fragment to add just before the library file path. This has two advantages: * `CMAKE_LINK_LIBRARY_FILE_FLAG` now works like `CMAKE_LINK_LIBRARY_FLAG`. * `CMAKE_LINK_LIBRARY_FILE_FLAG` can now be an attached flag whose value is the library file path. Technically this is a change in behavior, but this setting was created for internal use and should be rarely used outside of CMake itself. Fixes: #19541
* | | | | | Merge topic 'fileapi-install-generators'Brad King2019-08-054-7/+22
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | d70a0f8681 fileapi: Fix codemodel target install destination for cross-dir rules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3639
| * | | | | fileapi: Fix codemodel target install destination for cross-dir rulesBrad King2019-07-314-7/+22
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit e89ad0f94e (install: Allow installing targets created in another directory, 2018-06-18, v3.13.0-rc1~407^2) we support calling `install(TARGETS)` for targets created in another directory. However, install generators are associated with the directory in which the call to `install()` appears. This may not be the same directory in which the target is defined. Record in each target the list of install generators it has. Fixes: #19546
* | | | | CMake Nightly Date StampKitware Robot2019-08-051-1/+1
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2019-08-041-1/+1
| |_|/ / |/| | |
* | | | CMake Nightly Date StampKitware Robot2019-08-031-1/+1
| |/ / |/| |
* | | Merge topic 'use_cmHasPrefix'Brad King2019-08-0214-22/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | a693e875db Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}With Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3637
| * | | Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}WithSebastian Holtermann2019-08-0114-22/+29
| | | |
* | | | Merge topic 'cmStringAlgorithms_modernize'Brad King2019-08-023-44/+156
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4aa555f9da Tests: Add CMakeLib.testStringAlgorithms test 75cf7ec263 cmStringAlgorithms: Modernize cmWrap using cm::string_view e5d3ea22d4 cmStringAlgorithms: Add cmCatViews and cmStrCat functions a7d0fe9c24 cmStringAlgorithms: Simplify cmJoin using cm::string_view 541361a58b cmStringAlgorithms: Simplify cmStrCmp using cm::string_view Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3628
| * | | | cmStringAlgorithms: Modernize cmWrap using cm::string_viewSebastian Holtermann2019-08-011-7/+11
| | | | |
| * | | | cmStringAlgorithms: Add cmCatViews and cmStrCat functionsSebastian Holtermann2019-08-013-0/+124
| | | | |