Brad King
8832b695e0
Merge topic 'cuda_11'
...
046e454fdd CUDA: Error if can't determine toolkit library root
440dc98b07 CUDA: Clang CUDA 11.1 support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5525
2020-11-23 11:23:02 -05:00
Raul Tambre
440dc98b07
CUDA: Clang CUDA 11.1 support
...
version.txt is gone from CUDA 11.1 installations, but the rest is the same.
Instead of looking for version.txt look for <CUDA path>/nvvm/libdevice, which
is the main thing that Clang requires (though it also checks for the existence
of bin and include).
Fixes #21353 .
2020-11-22 11:30:01 +02:00
Brad King
60a131efd5
Merge topic 'revert-explicit-LANGUAGE-flag'
...
30aa715fac Revert "specify language flag when source LANGUAGE property is set"
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5519
2020-11-20 10:05:11 -05:00
Brad King
30aa715fac
Revert "specify language flag when source LANGUAGE property is set"
...
Revert commit 74b1c9fc8e (Explicitly specify language flag when source
LANGUAGE property is set, 2020-06-01, v3.19.0-rc1~722^2) and the lookup
tables from its two immediate ancestors. The purpose of that change was
to convert an explicit `LANGUAGE` source file property into an explicit
language specification compiler flag like `-x c`. This seems reasonable
since the property is documented as meaning "indicate what programming
language the source file is". It is also needed to help compilers deal
with non-standard source file extensions they don't recognize.
However, some projects have been setting `LANGUAGE C` on `.S` assembler
source files to mean "use the C compiler". Passing `-x c` for them
breaks the build because the `.S` sources are not written in C. These
projects should be updated to use `enable_language(ASM)`, for which
CMake often chooses the C compiler as the assembler when using
toolchains that support it (which would have to be the case for projects
using the approach).
Revert the change for now to preserve the old behavior for such projects.
We can re-introduce it with a policy in a future version of CMake.
Fixes : #21469
Issue: #14516 , #20716
2020-11-19 17:06:03 -05:00
Brad King
c00a6d3967
MSVC: Do not add /GR to CMAKE_CXX_FLAGS by default
...
The `/GR` flag has been on by default since MSVC cl 14.0 from VS 2005.
Remove it from the default flags to make it easier for projects to pass
`/GR-` themselves to turn it off.
Projects may be using string processing to replace `/GR` with another
flag, so we cannot simply drop it. Add a policy to drop it in a
compatible way.
Fixes : #21428
2020-11-13 11:46:23 -05:00
Brad King
fcc89bda1d
TestBigEndian: Re-implement using byte order detected from ABI check
...
Document the module as deprecated in favor of the ABI check results.
2020-11-06 09:17:30 -05:00
Brad King
ffda92d4bf
Merge topic 'clang-tidy-for-objc'
...
1134064e22 clang-tidy: allow OBJC and OBJCXX
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5467
2020-11-06 08:05:00 -05:00
Brad King
02d6c98210
Merge topic 'cpack-nuget'
...
41ae7c4e51 CPack/NuGet: Add settings for the license, icon, and language
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5415
2020-11-06 08:01:41 -05:00
Andrew Fuller
1134064e22
clang-tidy: allow OBJC and OBJCXX
2020-11-05 11:39:32 -08:00
Bob Apthorpe
41ae7c4e51
CPack/NuGet: Add settings for the license, icon, and language
...
Also update the XML Schema.
Fixes : #21348
2020-11-05 10:49:25 -05:00
Craig Scott
73974d84c2
Merge topic 'abi-byte-order'
...
f511a1c009 CMakeDetermineCompilerABI: Detect byte order as part of check
606b34b3a6 CMakeDetermineCompilerABI: Look for more INFO strings in test binary
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Juan Ramos <juan.ramos@amd.com >
Acked-by: John Palmer <juanr0911@gmail.com >
Merge-request: !5460
2020-11-05 07:47:59 -05:00
Brad King
f511a1c009
CMakeDetermineCompilerABI: Detect byte order as part of check
...
We already detect `sizeof(void*)`. Detect the byte order as part of the
same check.
Issue: #21392
2020-11-04 10:08:13 -05:00
Brad King
1583d50feb
Help: Move cmake_path release note from 3.19 to post-3.19 development
...
The feature has been removed from the 3.19 branch, but has been kept in
post-3.19 development. Move the release note accordingly.
2020-11-04 08:06:26 -05:00
Marc Chevrier
1c912056a1
cmake_path: remove new command from 3.19
...
Defer adding this command until post-3.19 development so that it
has more time to mature before being included in a release.
Issue: #21385
2020-11-03 09:55:35 -05:00
Marc Chevrier
e452f6e2cf
FindPython: Adds control over artifact names to search
...
Fixes : #21371
2020-11-03 15:12:58 +01:00
Brad King
e8adc3654a
Merge topic 'fix-cuda-qnx'
...
0832516bec Help: Add 3.19 release note about CUDA support on QNX
bcdd486bf7 CUDA: Enable support on QNX
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Raul Tambre <raul@tambre.ee >
Merge-request: !5446
2020-11-03 07:22:55 -05:00
Brad King
0832516bec
Help: Add 3.19 release note about CUDA support on QNX
2020-11-02 09:39:36 -05:00
Brad King
c79e02c4c3
Merge topic 'cmake-20866'
...
03ad0e61c1 configure_file: Add option for user defined permissions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5320
2020-10-27 07:11:13 -04:00
Brad King
ecab18bb7c
Merge topic 'issue-21034'
...
1a3d125de8 target_sources: Support custom targets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5421
2020-10-27 07:10:24 -04:00
Brad King
d67f47109c
Merge topic 'ExternalData-suppress-progress'
...
ae7c81c622 ExternalData: add support for suppressing progress during the build
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5413
2020-10-26 10:31:11 -04:00
Craig Scott
394a5b71b0
Merge topic 'docs-cleanup-3.19'
...
95c14579f2 Help: Cleanup typos and grammar for the 3.19 release
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5419
2020-10-26 07:16:03 -04:00
Asit Dhal
1a3d125de8
target_sources: Support custom targets
...
Fixes : #21034
2020-10-24 21:13:25 +02:00
Craig Scott
95c14579f2
Help: Cleanup typos and grammar for the 3.19 release
2020-10-24 22:58:42 +11:00
Asit Dhal
03ad0e61c1
configure_file: Add option for user defined permissions
...
User defined permissions and options to copy permissions are
implemented.
Fixes : #20866
2020-10-24 12:00:47 +02:00
Ben Boeckel
ae7c81c622
ExternalData: add support for suppressing progress during the build
...
During CI builds (at least), download progress is just noise. Allow it
to be suppressed.
Default to `OFF` for Ninja due to the tool's behavior of not showing
output until a command is complete (which makes any progress reporting
of little use) and `ON` otherwise.
2020-10-23 09:49:51 -04:00
Brad King
30d2d34611
Merge topic 'nsis-utf-8-bom'
...
c92b96234a CPack/NSIS: Template file in UTF-8 BOM to support Unicode
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5392
2020-10-20 09:39:15 -04:00
Johnny Jazeix
c92b96234a
CPack/NSIS: Template file in UTF-8 BOM to support Unicode
...
Fixes : #21318
2020-10-19 19:53:56 +02:00
Brad King
860e40de6b
Merge topic 'doc-CMP0111'
...
5c3a91c808 CMP0111: Clarify that the new error is on a missing property setting
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Reinking <alex_reinking@berkeley.edu >
Merge-request: !5385
2020-10-19 10:23:50 -04:00
Brad King
5c3a91c808
CMP0111: Clarify that the new error is on a missing property setting
...
The previous wording could be confused with the file missing on disk.
2020-10-16 08:26:00 -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
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
a258d03e33
Merge topic 'FindIntl_use_imported_targets'
...
c30d06b7e6 FindIntl: Add imported target
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5333
2020-10-14 11:44:08 -04:00
Sibi Siddharthan
c30d06b7e6
FindIntl: Add imported target
...
Fixes : #21271
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com >
2020-10-13 15:11:40 -04:00
Kyle Edwards
146e1e6ba1
Ninja: Transform DEPFILEs with policy CMP0116
...
Fixes : #21267
2020-10-13 10:19:46 -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
9c925e7170
Merge topic 'FindPython-Apple-python3'
...
5772ca0a53 FindPython: Ensure Apple Xcode python 3 is usable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5356
2020-10-13 08:26:14 -04:00
Marc Chevrier
5772ca0a53
FindPython: Ensure Apple Xcode python 3 is usable
...
The python 3 distributed as part of Xcode requires the specification
of a 'rpath' pointing at frameowrks root for a correct execution.
Fixes : #21293
2020-10-12 15:45:55 +02:00
Brad King
0cd84434ac
Begin post-3.19 development
2020-10-08 11:28:48 -04:00
Brad King
b16eb7c76d
Help: Drop development topic notes to prepare release
...
Release versions do not have the development topic section of
the CMake Release Notes index page.
2020-10-08 11:22:38 -04:00
Brad King
1b6c0b375e
Help: Organize and revise 3.19 release notes
...
Add section headers similar to the 3.18 release notes and move each
individual bullet into an appropriate section. Revise a few bullets.
2020-10-08 09:30:25 -04:00
Brad King
b81cb27f20
Help: Consolidate 3.19 release notes
...
Run the `Utilities/Release/consolidate-relnotes.bash` script to move
notes from `Help/release/dev/*` into `Help/release/3.19.rst`.
2020-10-08 09:30:25 -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
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
Kyle Edwards
6e10518cbc
Help: Add IDE integration guide
2020-10-06 11:54:12 -04:00
Robert Maynard
e17e2c6a51
ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC
2020-10-06 10:47:20 -04:00
Kyle Edwards
1d25760198
Help: Add presets documentation and release notes
2020-10-05 09:49:59 -04:00
Raul Tambre
079ea66468
CMakeDetermineCompilerABI: Handle NVCC-style -Werror flags
...
NVCC doesn't require an equals sign for its -Werror flags.
Fixes #21265 .
2020-10-04 09:09:21 +03:00
Brad King
3ec0f9d620
Merge topic 'UseSWIG-output-source-file-properties'
...
4a81a0ce3d UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file properties
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5303
2020-10-02 09:55:26 -04:00