Commit Graph

27417 Commits

Author SHA1 Message Date
Regina Pfeifer
fb5affe085 cmInstallFilesCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
242d876d7b cmIncludeRegularExpressionCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
06a2e764f0 cmIncludeExternalMSProjectCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
b46970cfe9 cmGetTestPropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
0b95c64e43 cmGetTargetPropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
e4c67981ac cmGetSourceFilePropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
36b939db68 cmFLTKWrapUICommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
28cf1271ed cmEnableLanguageCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
41b0d60f48 cmDefinePropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
f717e1fccf cmCreateTestSourceList: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
f0ecb12398 cmBuildCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Brad King
9602bcfc62 Merge topic 'compile-msvc-permissive-off'
a3cfb66543 Add compatibility with the cl.exe /permissive- compiler option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3803
2019-09-12 09:16:56 -04:00
Brad King
1a1508c8b8 Merge topic 'modernize-use-auto'
d25a5a7ec9 clang-tidy: modernize-use-auto

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3783
2019-09-12 09:15:38 -04:00
Brad King
d83bff8640 Merge topic 'free-find-commands'
8a18bb7cdf cmFind*: Port away from cmCommand

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3800
2019-09-12 09:14:48 -04:00
Kitware Robot
5bdff30484 CMake Nightly Date Stamp 2019-09-12 00:01:06 -04:00
Brad King
b5b10c8e95 Merge topic 'ctest-no-cmcommand'
cd7d736278 cmCTestTestHandler: Port away from cmCommand

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3795
2019-09-11 11:40:11 -04:00
Brad King
46629d6a49 Merge topic 'fileapiAddMoreBacktraces'
30006e199b fileapi: add backtraces for compile/link options
291c83f063 cmLocalGenerator: Add GetTargetCompileFlags overload with backtraces
8e973b8e8d cmLocalGenerator: Add GetTargetFlags overload with backtraces
4d5bbb7704 cmLocalGenerator: Add GetStaticLibraryFlags overload with backtraces
1f6a436bf4 cmLocalGenerator: Add AddCompileOptions overload with backtraces
5355a60fd0 cmLocalGenerator: Add AppendCompileOptions overload with backtraces
a20d2c85d0 cmLocalGenerator: Add AppendFlags overload with backtraces
b13207910e cmLocalGenerator: Clarify AddCompileOptions filter logic
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3775
2019-09-11 11:38:58 -04:00
Alexej Harm
a3cfb66543 Add compatibility with the cl.exe /permissive- compiler option 2019-09-11 15:26:20 +02:00
Kitware Robot
7f46e4a73a CMake Nightly Date Stamp 2019-09-11 00:01:05 -04:00
Regina Pfeifer
d25a5a7ec9 clang-tidy: modernize-use-auto
Set the MinTypeNameLength option to an impossibly high value in order
to limit the diagnostics to iterators.  Leave new expressions and cast
expressions for later.
2019-09-10 22:21:41 +02:00
Regina Pfeifer
8a18bb7cdf cmFind*: Port away from cmCommand 2019-09-10 22:13:11 +02:00
Brad King
95d4a2d055 Merge topic 'move-setting-GENERATE-upfront'
7569239362 cmMakefile: set GENERATED property of outputs upfront

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3789
2019-09-10 10:59:39 -04:00
Brad King
054d626c9c Merge topic 'MoveIfDifferent'
5b96fd5b81 use cmSystemTools::MoveFileIfDifferent()
5eaf1e1be2 cmSystemTools: introduce MoveFileIfDifferent()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3794
2019-09-10 10:58:53 -04:00
Brad King
bbf48c494a Merge topic 'windows-auto-export-incremental-build'
ff5028c531 Windows: Prevent auto exports to be regenerated on every build

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3750
2019-09-10 10:54:55 -04:00
Justin Goshi
30006e199b fileapi: add backtraces for compile/link options 2019-09-10 10:45:41 -04:00
Justin Goshi
291c83f063 cmLocalGenerator: Add GetTargetCompileFlags overload with backtraces 2019-09-10 10:45:41 -04:00
Justin Goshi
8e973b8e8d cmLocalGenerator: Add GetTargetFlags overload with backtraces 2019-09-10 10:45:41 -04:00
Justin Goshi
4d5bbb7704 cmLocalGenerator: Add GetStaticLibraryFlags overload with backtraces 2019-09-10 10:45:41 -04:00
Justin Goshi
1f6a436bf4 cmLocalGenerator: Add AddCompileOptions overload with backtraces 2019-09-10 10:45:41 -04:00
Justin Goshi
5355a60fd0 cmLocalGenerator: Add AppendCompileOptions overload with backtraces 2019-09-10 10:45:41 -04:00
Brad King
05d5c66ff8 Merge topic 'tidy-return-brace'
d63c1e4e6e clang-tidy: modernize-return-braced-init-list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3790
2019-09-10 10:27:44 -04:00
Brad King
1c2c541b0c Merge topic 'clang-tidy-8-macOS'
8588cdf3a0 clang-tidy: Fix bugprone-exception-escape diagnostic in test code
f1f57cffc7 clang-tidy: Fix performance-for-range-copy diagnostic in Xcode generator
175d8c4bf6 clang-tidy: Resolve performance-unnecessary-value-param diagnostics
7c5ec91301 cmGeneratedFileStreamBase: Optimize string construction in Close

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3796
2019-09-10 10:26:55 -04:00
Brad King
c2ead49451 Merge topic 'local-var'
4d71bea02c cmLocalGenerator::AddConfigVariableFlags: optimize string construction

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3793
2019-09-10 10:02:00 -04:00
Kitware Robot
f9a014e2c8 CMake Nightly Date Stamp 2019-09-10 00:01:05 -04:00
Brad King
f1f57cffc7 clang-tidy: Fix performance-for-range-copy diagnostic in Xcode generator
Fix diagnostics that appear on macOS with clang-tidy-8.
2019-09-09 13:51:23 -04:00
Brad King
175d8c4bf6 clang-tidy: Resolve performance-unnecessary-value-param diagnostics
Fix diagnostics that appear on macOS with clang-tidy-8.  Suppress cases
where we intentionally take an argument by value to let the caller
choose whether to copy or move.
2019-09-09 13:51:23 -04:00
Brad King
7c5ec91301 cmGeneratedFileStreamBase: Optimize string construction in Close
Use cmStrCat to concatenate two parts of a file name.

This also avoids a bugprone-exception-escape diagnostic from
clang-tidy-8 on macOS.
2019-09-09 13:51:23 -04:00
Regina Pfeifer
cd7d736278 cmCTestTestHandler: Port away from cmCommand 2019-09-09 16:32:05 +02:00
Justin Goshi
a20d2c85d0 cmLocalGenerator: Add AppendFlags overload with backtraces 2019-09-09 09:43:34 -04:00
Justin Goshi
b13207910e cmLocalGenerator: Clarify AddCompileOptions filter logic 2019-09-09 09:43:34 -04:00
Justin Goshi
ca7b90dcf2 cmLocalGenerator: Use local variables to collect flags 2019-09-09 09:43:34 -04:00
Justin Goshi
eac8700c78 cmLocalGenerator: Improve local variable names 2019-09-09 09:43:34 -04:00
Daniel Eiband
ff5028c531 Windows: Prevent auto exports to be regenerated on every build
Check modified time stamps of input files against an existing exports file
before generating the auto exports.

Fixes: #19650
2019-09-09 15:43:15 +02:00
Brad King
922482dd3a Merge topic 'cuda_resolve_device_symbols_on_static_lib_collect_deps_properly'
2d7bb13da7 CUDA: static lib device linking computes required static libs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3748
2019-09-09 09:41:32 -04:00
Rolf Eike Beer
5b96fd5b81 use cmSystemTools::MoveFileIfDifferent()
This is better than doing CopyFileIfDifferent() followed by RemoveFile() in
two ways:

 - it is more efficient, as it avoids disk I/O for the data, even if the
   files here are usually small
 - it is atomic, so an abort during the copy will not leave a destination file
   with partial data behind
2019-09-09 10:34:08 +02:00
Rolf Eike Beer
5eaf1e1be2 cmSystemTools: introduce MoveFileIfDifferent() 2019-09-09 10:30:25 +02:00
Rolf Eike Beer
4d71bea02c cmLocalGenerator::AddConfigVariableFlags: optimize string construction 2019-09-09 08:15:32 +02:00
Kitware Robot
d803d6b59f CMake Nightly Date Stamp 2019-09-09 00:01:04 -04:00
Kitware Robot
c52a354244 CMake Nightly Date Stamp 2019-09-08 00:01:20 -04:00
Kitware Robot
9aecf2e840 CMake Nightly Date Stamp 2019-09-07 00:01:06 -04:00