Gabor Bencze
7533e47ccc
cmCommand refactor: cmLoadCommandCommand
2019-08-25 14:31:16 +02:00
Gabor Bencze
9d6fc3f5ed
cmCommand refactor: cmExportLibraryDependenciesCommand
2019-08-25 14:29:25 +02:00
Gabor Bencze
524d721514
cmCommand refactor: cmUseMangledMesaCommand
2019-08-25 14:29:25 +02: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
bf832ccf01
Utilities/Release: Add README.rst describing directory content
2019-08-23 13:31:54 -04:00
Brad King
ab153f17bf
Utilities/Release: Drop machine-specific README
2019-08-23 13:29:49 -04:00
Sebastian Holtermann
3b2b02825d
Source sweep: Replace std::ostringstream when used with a single append
...
This replaces `std::ostringstream`, when it is written to only once.
If the single written argument was numeric, `std::to_string` is used instead.
Otherwise, the single written argument is used directly instead of the
`std::ostringstream::str()` invocation.
2019-08-23 18:52:33 +02:00
Braden McDaniel
232f5bd644
FindLibLZMA: Find debug/release variants on Windows
2019-08-23 11:19:21 -04:00
Brad King
ed294c1664
Add option to skip CMake tests that need network access
2019-08-23 11:12:07 -04:00
Brad King
4b8a864d52
Add option to test CMake itself against its hosting CMake
2019-08-23 11:12:07 -04:00
Sebastian Holtermann
aaf59120bf
Source sweep: Replace cmExpandList with the shorter cmExpandedList
...
This replaces the code pattern
```
std::vector<std::string> args;
cmExpandList(valueStr, args, ...)
```
with
```
std::vector<std::string> args = cmExpandedList(valueStr, ...)
```
2019-08-23 17:07:49 +02:00
sidju
4c8741eb86
CPack/STGZ: Require explicit acceptance or refusal of license
...
To make using the generated STGZ easier, require a specific answer to
accepting the license terms. Since more moves down one line when '\n'
is entered a user may hold enter to paginate through the document. This
change prevents the user from accidentally refusing the license terms by
holding enter for too long and having to start over.
2019-08-23 11:04:26 -04:00
Brad King
74eef37bc7
Utilities/Release: Select MSVC runtime library via abstraction
...
Use the `CMAKE_MSVC_RUNTIME_LIBRARY` abstraction added by CMake 3.15
instead of hard-coding the `-MT` flag.
2019-08-23 10:55:59 -04:00
Brad King
ed54d87789
Configure CMake itself with policies through CMake 3.15
...
In particular, set `CMP0091` to `NEW` to enable the MSVC runtime library
abstraction so it can be set via `CMAKE_MSVC_RUNTIME_LIBRARY` in the
cache.
2019-08-23 10:55:58 -04:00
Brad King
19612dffd2
Merge topic 'solaris-ldd'
...
3bb7453436 GetPrerequisites: match ldd output on Solaris
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3695
2019-08-23 10:11:47 -04:00
Brad King
2624dd0d46
Merge topic 'gitattributes-bash-lf'
...
1a6e5ac5cf gitattributes: Use LF newlines in '.bash' files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3720
2019-08-23 10:09:35 -04:00
Brad King
38e8c30b4d
Merge branch 'release-3.15'
2019-08-23 10:08:00 -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
76891a4a7a
Merge topic 'CrayPrgEnv-update-link-type-detection'
...
971c778213 CrayPrgEnv: Change default linking mode based on PE version
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3716
2019-08-23 10:05:52 -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
Kyle Edwards
197c5e12ad
Source: Add cm::optional
2019-08-23 08:43:35 -04:00
Brad King
170fcd715f
Extend C++17 feature checks to require std::optional
2019-08-23 08:43:35 -04:00
Kitware Robot
68126f5a02
CMake Nightly Date Stamp
2019-08-23 00:01:08 -04:00
Regina Pfeifer
b14bcd9123
cmListCommand: Use cmSubcommandTable
2019-08-22 22:55:58 +02:00
Regina Pfeifer
66c2714f22
cmStringCommand: Use cmSubcommandTable
2019-08-22 22:14:53 +02:00
Zack Galbreath
2079267959
ctest_build: ignore ANSI color
...
Ignore ANSI color when scraping logs for errors and warnings
2019-08-22 15:53:42 -04:00
Brad King
1a6e5ac5cf
gitattributes: Use LF newlines in '.bash' files
2019-08-22 15:17:58 -04:00
Brad King
290ab79f61
Merge branch 'ctest-json-REQUIRED_FILES' into release-3.15
...
Merge-request: !3719
2019-08-22 15:09:49 -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
Zack Galbreath
2a71a0390c
ctest: rename TRACK to GROUP
...
Update command-line options, script variables, and documentation to use
the term "group" instead of "track". The old terms are still available
for now, but they are now undocumented.
This makes our terminology more consistent with CDash. The goal of this
change is to make it more clear to our users how CTest and CDash interact
with each other.
2019-08-22 13:10:18 -04:00
Brad King
a7aade8419
cmGlobalVisualStudioGenerator: Fix buffer sizes used with RegEnumKeyExW
...
In commit 0b9906c2fb (Windows: Use wide-character system APIs,
2013-12-04, v3.0.0-rc1~254^2) several buffer size computations had to be
updated to multiply by `sizeof(wchar_t)`, but for RegEnumKeyExW we were
already computing the correct number of characters with a division which
was accidentally converted to a multiplication. Use `cm::size` to
compute the number of characters in the buffer instead.
Issue: #19610
2019-08-22 13:06:15 -04:00
Brad King
d911f8fc12
Merge branch 'CrayPrgEnv-update-link-type-detection' into release-3.15
...
Merge-request: !3716
2019-08-22 12:27:08 -04:00
Chuck Atkins
971c778213
CrayPrgEnv: Change default linking mode based on PE version
...
Beginning with the 19.06 release of the Cray Programming Environment, the
default linking mode on XC Cray systems is dynamic instead of static.
This updates the CrayPrgEnv compiler wrappers to detect the PE version
being used and behave accordingly.
2019-08-22 12:26:06 -04:00
Brad King
f6211f57d6
cmGlobalVisualStudioGenerator: Fix buffer sizes used RegQueryValueExW
...
In commit 0b9906c2fb (Windows: Use wide-character system APIs,
2013-12-04, v3.0.0-rc1~254^2) several buffer size computations had to be
updated to multiply by `sizeof(wchar_t)`, but some for RegQueryValueExW
were incorrect because the number of bytes was already computed.
Issue: #19610
2019-08-22 11:01:50 -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
Brad King
6e1ff50efb
Merge topic 'FindBoost-clarify-header-only'
...
0148f1a867 FindBoost: Add note about header-only libs in warning msg
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3712
2019-08-22 10:16:10 -04:00
Kitware Robot
7ddb5adc40
CMake Nightly Date Stamp
2019-08-22 00:01:08 -04:00
Brad King
bce0d4c27d
Merge topic 'FindBZip2-windows-lib-names'
...
5edceff308 FindBZip2: Add Windows library names emitted from bzip2 1.0.6 makefile
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3711
2019-08-21 12:01:32 -04:00
Braden McDaniel
5edceff308
FindBZip2: Add Windows library names emitted from bzip2 1.0.6 makefile
...
As of release 1.0.6, the bzip2 distribution includs a makefile for nmake
on Windows that emits library names of the form `libbz2.lib`.
2019-08-21 12:00:11 -04:00
Brad King
28ef108140
Merge topic 'source_group-tests'
...
bb6e95ca6d source_group: Improved generated filters tests
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3675
2019-08-21 11:59:38 -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
2ad09c5ddd
Merge topic 'ProcessorCount-solaris'
...
1c87bc60ee ProcessorCount: Fix virtual processor count on Solaris
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3694
2019-08-21 10:51:48 -04:00