Jon Chronopoulos
e6c9a8bac3
cmake: Teach -E remove_directory to remove directory symlinks
...
If the argument to `remove_directory` is a symlink to a directory,
remove the symlink instead.
Issue: #19533
2019-08-30 10:37:30 -04:00
Kitware Robot
2a1be178de
CMake Nightly Date Stamp
2019-08-25 00:01:03 -04:00
Kitware Robot
395cbee2fc
CMake Nightly Date Stamp
2019-08-24 00:01:12 -04:00
Brad King
a6b01b7d45
Merge topic 'ctest-json-REQUIRED_FILES'
...
5778880d20 CTest: Fix --show-only=json-v1 output with REQUIRED_FILES property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3719
2019-08-23 10:07:32 -04:00
Brad King
7f2bb732fc
Merge topic 'source_sweep_cmStrCat'
...
9b334397f5 Source sweep: Use cmStrCat for string concatenation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Rolf Eike Beer <eike@sf-mail.de >
Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de >
Merge-request: !3699
2019-08-23 10:03:57 -04:00
Kitware Robot
68126f5a02
CMake Nightly Date Stamp
2019-08-23 00:01:08 -04:00
Brad King
5778880d20
CTest: Fix --show-only=json-v1 output with REQUIRED_FILES property
...
Fixes : #19629
2019-08-22 15:07:43 -04:00
Sebastian Holtermann
9b334397f5
Source sweep: Use cmStrCat for string concatenation
...
This patch is generated by a python script that uses regular expressions to
search for string concatenation patterns of the kind
```
std::string str = <ARG0>;
str += <ARG1>;
str += <ARG2>;
...
```
and replaces them with a single `cmStrCat` call
```
std::string str = cmStrCat(<ARG0>, <ARG1>, <ARG2>, ...);
```
If any `<ARGX>` is itself a concatenated string of the kind
```
a + b + c + ...;
```
then `<ARGX>` is split into multiple arguments for the `cmStrCat` call.
If there's a sequence of literals in the `<ARGX>`, then all literals in the
sequence are concatenated and merged into a single literal argument for
the `cmStrCat` call.
Single character strings are converted to single char arguments for
the `cmStrCat` call.
`std::to_string(...)` wrappings are removed from `cmStrCat` arguments,
because it supports numeric types as well as string types.
`arg.substr(x)` arguments to `cmStrCat` are replaced with
`cm::string_view(arg).substr(x)`
2019-08-22 16:38:10 +02:00
Brad King
130dbe4a5d
Merge topic 'cmCommand_refactor'
...
6ab28b9413 cmCommand refactor: cmStringCommand
36f32d3604 cmCommand refactor: cmSetPropertyCommand
7c83c19205 cmCommand refactor: cmSetDirectoryPropertiesCommand
9413952c42 cmCommand refactor: cmCMakePolicyCommand
07ea93de54 cmCommand refactor: cmWriteFileCommand
ca3b9186bb cmCommand refactor: cmVariableWatchCommand
b1acc711f4 cmCommand refactor: cmRemoveCommand
413a960391 cmCommand refactor: cmCMakeHostSystemInformationCommand
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3673
2019-08-22 10:25:09 -04:00
Brad King
337be1507d
Merge topic 'isolate-declarations'
...
d331021255 clang-tidy: isolate declarations for readability
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3704
2019-08-22 10:23:34 -04:00
Kitware Robot
7ddb5adc40
CMake Nightly Date Stamp
2019-08-22 00:01:08 -04:00
Brad King
b6412b38ee
Merge topic 'double-export-error-message-install'
...
d17580909f cmExportInstallFileGenerator: improve error message
a18100898a cmInstallExportGenerator: add a method for the file destination
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3703
2019-08-21 11:58:27 -04:00
Brad King
dfb5936f0f
Merge topic 'shared-string'
...
be7807478c cmDefinitions: Reduce allocation of keys and values in MakeClosure
e07e2bc8bb bootstrap: Compile cm::String
c1787cb5eb cpack.cxx: Re-order include blocks to follow our conventions
141e307484 cmConfigure.h: Tell windows.h not to define min/max macros
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3669
2019-08-21 11:57:05 -04:00
Brad King
ea4c3976fb
Merge topic 'install-fail-reason'
...
891e670e59 install: print reason of failure
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Turbov <i.zaufi@gmail.com >
Merge-request: !3696
2019-08-21 11:55:58 -04:00
Brad King
bd3f088abe
Merge topic 'ccmake-find-system-form-header'
...
66654135c1 ccmake: Fix form.h include with CMAKE_USE_SYSTEM_FORM
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3683
2019-08-21 11:54:48 -04:00
Brad King
3402e6cf82
Merge topic 'vs-sln-bom'
...
3b51343ea1 VS: Emit UTF-8 BOM for generated solution files
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3705
2019-08-21 11:53:23 -04:00
Brad King
bfe0ea2d98
Merge topic 'cm-contains'
...
2dfc52675c cmAlgorithms: Add cmContains
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Sebastian Holtermann <sebholt@web.de >
Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de >
Merge-request: !3700
2019-08-21 11:52:06 -04:00
Brad King
de2c73d84f
Merge topic 'free-disallowed'
...
c55fb044a9 cmBuildNameCommand: Implement as free function
86bf1eef75 cmState: Support free function disallowed commands
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3688
2019-08-21 10:47:47 -04:00
Kitware Robot
a04b852a7b
CMake Nightly Date Stamp
2019-08-21 00:01:08 -04:00
Regina Pfeifer
d331021255
clang-tidy: isolate declarations for readability
2019-08-21 00:20:49 +02:00
Gabor Bencze
6ab28b9413
cmCommand refactor: cmStringCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
36f32d3604
cmCommand refactor: cmSetPropertyCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
7c83c19205
cmCommand refactor: cmSetDirectoryPropertiesCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
9413952c42
cmCommand refactor: cmCMakePolicyCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
07ea93de54
cmCommand refactor: cmWriteFileCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
ca3b9186bb
cmCommand refactor: cmVariableWatchCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
b1acc711f4
cmCommand refactor: cmRemoveCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
413a960391
cmCommand refactor: cmCMakeHostSystemInformationCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
c33c52bb32
cmCommand refactor: cmUnsetCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
b316d0d417
cmCommand refactor: cmSiteNameCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
b3aa789630
cmCommand refactor: cmSetCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
2a9299782e
cmCommand refactor: cmSeparateArgumentsCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
d780822da6
cmCommand refactor: cmParseArgumentsCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
4fa9630b7e
cmCommand refactor: cmOptionCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
cfc7854ef0
cmCommand refactor: CmMessageCommand
2019-08-20 14:42:20 -04:00
Gabor Bencze
71724633a2
cmCommand refactor: cmMathCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
2b58ae7577
cmCommand refactor: cmMarkAsAdvancedCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
5b40a872dd
cmCommand refactor: cmMakeDirectoryCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
e0b7ff4af2
cmCommand refactor: cmListCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
9ae9f3e77e
cmCommand refactor: cmMacroCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
ceab7bda44
cmCommand refactor: cmIncludeGuardCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
f42dad7a5e
cmCommand refactor: cmIncludeCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
fb57537a83
cmCommand_refactor: cmGetPropertyCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
6377efd154
cmCommand refactor: cmGetFilenameComponentCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
067d1fa9c0
cmCommand refactor: cmGetDirectoryPropertyCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
40ba0addac
cmCommand refactor: cmGetCMakePropertyCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
9bbe95a0e7
cmCommand refactor: cmFunctionCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
cce3600e3f
cmCommand refactor: cmForEachCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
3e5eb45ec1
cmCommand refactor: cmExecuteProcessCommand
2019-08-20 14:42:19 -04:00
Gabor Bencze
0d87f5d83e
cmCommand refactor: cmExecProgramCommand
2019-08-20 14:42:19 -04:00