Brad King
b824fd5a2e
Merge topic 'file-configure-angle-brackets'
...
06a9a3bdc3 file(CONFIGURE): Allow angle brackets in content
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5379
2020-10-16 09:23:42 -04:00
Brad King
ce11bace37
Merge topic 'CheckSource-Fortran'
...
c4c636cef5 Tests: Add cases for CheckSource{Compiles,Runs} bad arguments
1e519df025 CheckSource{Runs,Compiles}: Fix default Fortran source extension
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5378
2020-10-16 09:22:32 -04:00
Brad King
3b9492204a
Merge topic 'fix-refactor-generator-configs'
...
b9cb1d324d Fix regression in test/install/package configuration selection
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5381
2020-10-16 09:19:48 -04:00
Brad King
b9cb1d324d
Fix regression in test/install/package configuration selection
...
In commit 7a969fe21d (cmMakefile: Refactor API to better handle empty
config values, 2020-06-30, v3.19.0-rc1~567^2), calls to
`GetGeneratorConfigs` that pass `OnlyMultiConfig` only want to get any
configurations listed if the generator is multi-config. Fix the
implementation to actually do that.
Fixes : #21316
2020-10-15 10:53:09 -04:00
Brad King
c4c636cef5
Tests: Add cases for CheckSource{Compiles,Runs} bad arguments
2020-10-15 09:42:56 -04:00
Cristian Adam
06a9a3bdc3
file(CONFIGURE): Allow angle brackets in content
...
Fixes : #21306
2020-10-15 15:42:21 +02:00
Brad King
4f6fccd861
Merge topic 'remove-server-mode'
...
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
2020-10-15 08:31:47 -04:00
Brad King
9493532f80
Merge topic 'cmake-E-cat-binary'
...
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
2020-10-15 08:10:51 -04:00
Brad King
b1d9a25f35
Merge topic 'cmake-E-cat-binary' into release-3.19
...
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
2020-10-15 08:10:50 -04:00
Brad King
9952ee063a
server: remove deprecated 'cmake -E server' mode
...
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.
2020-10-14 16:41:50 -04:00
Johnny Jazeix
f7a5f28318
cmake: Fix '-E cat' command for binary files on Windows
...
Reset `std::cout` to write in binary mode with no encoding conversions.
Co-Author: Brad King <brad.king@kitware.com >
Fixes : #21295
2020-10-14 12:08:07 -04:00
Brad King
c555959717
Merge topic 'ninja-depfile-transformation'
...
146e1e6ba1 Ninja: Transform DEPFILEs with policy CMP0116
596439b1bb cmCustomCommandGenerator: Add option to transform depfile
b2c14bc774 cmake -E: Add cmake_transform_depfile internal command
946adadd40 cmGccDepfileReader: Rework helper code
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5325
2020-10-14 11:49:51 -04:00
Brad King
2b218883cd
Add deprecation warnings for policies CMP0075 and below
...
The OLD behaviors of all policies are deprecated, but only by
documentation. Add an explicit deprecation diagnostic for policies
introduced in CMake 3.12 and below to encourage projects to port
away from setting policies to OLD.
2020-10-13 14:36:00 -04:00
Kyle Edwards
146e1e6ba1
Ninja: Transform DEPFILEs with policy CMP0116
...
Fixes : #21267
2020-10-13 10:19:46 -04:00
Kyle Edwards
b2c14bc774
cmake -E: Add cmake_transform_depfile internal command
2020-10-13 10:18:02 -04:00
Kyle Edwards
a1988e4c80
Merge topic 'explicit-source-extensions'
...
fd50a75fa0 CMP0115: Require source file extensions to be explicit
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !5346
2020-10-13 10:17:14 -04:00
Kyle Edwards
fd50a75fa0
CMP0115: Require source file extensions to be explicit
2020-10-13 09:46:54 -04:00
Brad King
01ae8149b8
Merge topic 'android-verify-abi-in-ndk' into release-3.19
...
5c2f9e3eeb Android: Fatal if ABI is not supported by NDK
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5351
2020-10-13 08:38:54 -04:00
Brad King
7e0cb5cab8
Merge topic 'android-verify-abi-in-ndk'
...
5c2f9e3eeb Android: Fatal if ABI is not supported by NDK
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5351
2020-10-13 08:38:54 -04:00
Craig Scott
343c8fe8ab
Merge topic 'export-namelink-only'
...
64690f6df0 export: Do not fail generation for namelink-only case
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5352
2020-10-12 19:19:33 -04:00
Craig Scott
446874a8a1
Merge topic 'export-namelink-only' into release-3.19
...
64690f6df0 export: Do not fail generation for namelink-only case
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5352
2020-10-12 19:19:32 -04:00
Kyle Edwards
9e9447a427
Merge topic 'cmake-presets-documentation-fix'
...
94c955e508 Tests: Test the CMakePresets.json example in the documentation
d6af1e83bc Help: Fix documentation of CMakePresets.json's cacheVariables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5353
2020-10-12 14:04:41 -04:00
Deniz Bahadir
64690f6df0
export: Do not fail generation for namelink-only case
2020-10-09 22:29:22 +02:00
Kyle Edwards
94c955e508
Tests: Test the CMakePresets.json example in the documentation
2020-10-09 15:35:54 -04:00
Haibo Huang
5c2f9e3eeb
Android: Fatal if ABI is not supported by NDK
2020-10-09 09:49:19 -04:00
Brad King
5f2e1f2f3d
Merge topic 'GNUInstallDirs-debian' into release-3.19
...
798c1c3192 GNUInstallDirs: Comply with Debian Policy on LIBEXECDIR
75bcd3cf54 Tests: Add RunCMake.GNUInstallDirs expected output specific to Debian
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5349
2020-10-09 09:38:20 -04:00
Brad King
ab29036620
Merge topic 'GNUInstallDirs-debian'
...
798c1c3192 GNUInstallDirs: Comply with Debian Policy on LIBEXECDIR
75bcd3cf54 Tests: Add RunCMake.GNUInstallDirs expected output specific to Debian
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5349
2020-10-09 09:38:20 -04:00
Brad King
26464da5d3
cmMakefile: Drop unnecessary custom command APPEND check
...
Since commit 777ceaea94 (cmMakefile: Delay custom command creation,
2019-10-17, v3.17.0-rc1~352^2) we process custom command declarations
at generate time. This includes the append-to-non-existing-command
check, so we do not need it at configure time.
2020-10-08 12:20:33 -04:00
Brad King
62e73a7d10
Tests: Fix policy version in RunCMake.ExternalProject test
...
Now that we have policies that need to be tested, this test cannot
just use CMAKE_VERSION for the policy level.
2020-10-08 11:58:06 -04:00
Dennis Klein
798c1c3192
GNUInstallDirs: Comply with Debian Policy on LIBEXECDIR
...
If CMAKE_INSTALL_PREFIX is /usr, CMAKE_INSTALL_LIBEXECDIR shall return
the same value as CMAKE_INSTALL_LIBDIR on Debian.
While the FHS allows /usr/libexec for internal binaries
(https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrlibexec ) the
Debian Policy Manual states an exception here (section 9.1.1 bullet point 4):
https://www.debian.org/doc/debian-policy/ch-opersys#file-system-structure .
Fixes : #21287
2020-10-08 11:10:41 -04:00
Brad King
75bcd3cf54
Tests: Add RunCMake.GNUInstallDirs expected output specific to Debian
2020-10-08 11:09:37 -04:00
Brad King
bc19ceb6fe
Merge topic 'check_cuda_helpers'
...
5c66ac31e6 CUDA: CheckLinkerFlag now supports CUDA
da2622ff36 CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlags
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5338
2020-10-08 09:22:21 -04:00
Robert Maynard
5c66ac31e6
CUDA: CheckLinkerFlag now supports CUDA
2020-10-08 08:30:59 -04:00
Robert Maynard
da2622ff36
CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlags
2020-10-08 08:30:59 -04:00
Brad King
c4c86acaac
Merge topic 'cmake-presets-empty-var'
...
a395cb516b CMakePresets.json: Prohibit empty variable names
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5339
2020-10-07 07:25:52 -04:00
Brad King
c61f820a7f
Merge topic 'add_ispc_to_check_helpers'
...
e17e2c6a51 ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5337
2020-10-07 07:13:21 -04:00
Brad King
026beeb620
Merge topic 'CheckCompilerFlag-gcc-10'
...
d66858c8e4 CheckCompilerFlag: Update the regex used to detect invalid options for GCC 10
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5331
2020-10-07 07:12:31 -04:00
Kyle Edwards
a395cb516b
CMakePresets.json: Prohibit empty variable names
2020-10-06 12:09:38 -04:00
Brad King
8c4c658ab0
Merge topic 'cmake-presets'
...
6f8fdc686c .gitignore: Add CMakeUserPresets.json
1d25760198 Help: Add presets documentation and release notes
a4382f72d7 CMake GUI: Add presets functionality
8617479061 CMake: Add presets functionality
06128cf949 Presets: Add cmCMakePresetsFile class
5a36542086 Refactor: Add allowArch parameter to cmake::CreateGlobalGenerator()
3059e6aed7 cmJSONHelpers: Add new Bind() function
8682d1b7b2 CMake GUI Tests: Increase default sleep time
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev >
Merge-request: !5169
2020-10-06 10:49:59 -04:00
Robert Maynard
e17e2c6a51
ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC
2020-10-06 10:47:20 -04:00
Luthaf
d66858c8e4
CheckCompilerFlag: Update the regex used to detect invalid options for GCC 10
...
The warning emmitted by GCC for invalid options have been updated to
read "command-line option XXX is valid ..." instead of "command line
option XXX is valid ...". Update the regex to make it valid with both
the old and new warning message.
Fixes : #21275
2020-10-06 10:38:18 -04:00
Brad King
990cf3c5d2
Merge topic 'add_checkcompilerflag_tests'
...
8ac9719659 CheckCompilerFlag: Add tests to verify module correctness
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5328
2020-10-06 08:18:46 -04:00
Robert Maynard
8ac9719659
CheckCompilerFlag: Add tests to verify module correctness
2020-10-06 07:07:02 -04:00
Brad King
c814172e84
Merge topic 'csharp-source_group-bugfix'
...
8d87cfdbf3 VS: Fix regression in C# source links
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5314
2020-10-06 06:47:19 -04:00
Kinan Mahdi
8d87cfdbf3
VS: Fix regression in C# source links
...
Fix logic used since commit ac6b18cd90 (CSharp: Add support for source
groups with out-of-source builds, 2020-02-18, v3.18.0-rc1~645^2).
Add a check of the physical file location for C# source groups.
2020-10-05 12:49:14 -04:00
Kyle Edwards
8617479061
CMake: Add presets functionality
2020-10-05 09:49:59 -04:00
Craig Scott
1291dd3103
Merge topic 'xcode-refactor-framework-linking'
...
ce2dee9e5b Xcode: Don't add framework as -framework argument in linker info list
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5216
2020-10-04 17:05:57 -04:00
Craig Scott
a771e2146a
Merge topic 'FetchContent_missing_SOURCE_DIR'
...
b030a6af88 FetchContent: Raise error if manually given source dir does not exist
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5317
2020-10-04 17:02:11 -04:00
Craig Scott
b030a6af88
FetchContent: Raise error if manually given source dir does not exist
...
Fixes : #21208
2020-10-03 18:46:08 +10:00
Marc Chevrier
127436192d
FindSWIG: Fix syntax error
...
Add some tests to cover all cases regarding version handling
Fixes : #21264
2020-10-02 16:17:36 +02:00