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
Brad King
a64c779746
Merge topic 'execute_process-fatal-error'
...
116a427eb1 execute_process: add options for fatal errors on subprocess failure
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5243
2020-10-02 08:38:53 -04:00
Craig Scott
468bcc3291
Merge topic 'FindSWIG-version-range'
...
1d300ee2a9 FindSWIG: Add version range support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5306
2020-10-02 06:58:13 -04:00
Brad King
7074b4c08c
Help/dev: Add maintainer guide steps for CI packaging pipeline updates
2020-10-01 12:16:24 -04:00
Asit Dhal
116a427eb1
execute_process: add options for fatal errors on subprocess failure
...
Fixes : #19930
2020-10-01 17:07:44 +02:00
Brad King
436b57ccb2
Merge topic 'genexpr-for-mfc-flag'
...
c1f1eaf7a4 VS: Teach CMAKE_MFC_FLAG to support generator expressions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5283
2020-10-01 07:59:33 -04:00
Brad King
9fc742041b
Merge topic 'intel-clang'
...
5c3a93ab88 Intel: Add Intel Clang compiler identification
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5300
2020-10-01 07:55:13 -04:00
Craig Scott
431f1183ef
Merge topic 'FindPython-version_range'
...
e4b7049230 FindPython: Add version range support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5265
2020-10-01 07:43:38 -04:00
Marc Chevrier
1d300ee2a9
FindSWIG: Add version range support
2020-10-01 12:00:29 +02:00
Marc Chevrier
4a81a0ce3d
UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file properties
...
These properties enable to manage output directories on
per source file basis.
Fixes : #21250
2020-09-30 19:19:14 +02:00
Andrey Starodubtsev
c1f1eaf7a4
VS: Teach CMAKE_MFC_FLAG to support generator expressions
2020-09-30 12:24:13 -04:00
Brad King
d91c3e33cb
Merge topic 'cmake_language-DEFER'
...
e8b0359a43 cmake_language: Add signature to DEFER calls to later times
9880549405 cmake_language: Make all errors fatal
4f33f3dcff cmake_language(CALL): Accept empty ${var} expansions
4ebe9c4ce1 cmake_language(EVAL): Factor out internal helper
78ff24a3a7 Help: Use singular placeholder name in cmake_language signature
edd60d4419 Tests: Simplify RunCMake.cmake_language invalid command cases
1a5bf8245e cmMakefile: Clarify name of internal list file run method
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5262
2020-09-30 11:55:33 -04:00
Marc Chevrier
e4b7049230
FindPython: Add version range support
...
Fixes : #21107
2020-09-30 14:30:23 +02:00
Brad King
e8b0359a43
cmake_language: Add signature to DEFER calls to later times
...
Fixes : #19575
2020-09-29 17:12:33 -04:00
Harini Chilamantula
5c3a93ab88
Intel: Add Intel Clang compiler identification
...
The compiler identifies itself with the `__INTEL_CLANG_COMPILER`
preprocessor definition.
2020-09-29 17:00:43 -04:00
Brad King
78ff24a3a7
Help: Use singular placeholder name in cmake_language signature
2020-09-29 10:00:23 -04:00
Kyle Edwards
af048185b1
Merge topic 'cmake-gui-environment'
...
85f5009d27 CMake GUI: Add environment editor
d6c051c126 Tests: Add some basic configure tests for the CMake GUI
7cd95d9996 Tests: Add CatchShow helper for CMake GUI tests
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5270
2020-09-29 09:51:22 -04:00
Brad King
0021d24fb3
Merge topic 'add_lang_agnostic_check_compile_flag_module'
...
90dead024c CheckCompilerFlag: unified way to check compiler flags per language
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5281
2020-09-29 05:45:07 -04:00
Brad King
59d84ab9f3
Merge topic 'update-guides'
...
9b988d9e57 Help: Cleanup guides
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5280
2020-09-29 05:38:55 -04:00
Kyle Edwards
85f5009d27
CMake GUI: Add environment editor
2020-09-28 09:46:35 -04:00
Robert Maynard
90dead024c
CheckCompilerFlag: unified way to check compiler flags per language
2020-09-28 09:07:54 -04:00
Betsy McPhail
9b988d9e57
Help: Cleanup guides
...
* Move sections to be same level as Introduction in "Using Dependecies"
* Rename "Importing Exporting Targets" to "Importing Exporting Guide"
* Add an Introduction header to the Tutorial and Importing Exporting Guide
2020-09-25 15:29:05 -04:00
Betsy McPhail
0aea38d25e
Help: Change User Interaction image paths to be relative to source file
2020-09-25 14:45:01 -04:00
Raul Tambre
c63fe01835
CUDA: Clang separable compilation
...
For NVCC the compiler takes care of device linking when passed the "-dlink"
flag.
Clang doesn't support such magic and requires the buildsystem to do the work
that NVCC does behind the scenes.
The implementation is based on Bazel's device linking documentation:
7cabcdf073/third_party/nccl/build_defs.bzl.tpl (L259)
Closes : #20726
2020-09-24 15:19:54 -04:00
Brad King
7b38161ca1
Merge topic 'check-source-modules'
...
357e2ef429 CheckSoureRuns: Add a unified way to check if a source runs
10ae907de0 CheckSoureCompiles: Add a unified way to check if a source compiles
f5c928f73c Add a test to verify '\' handling in CHECK_CXX_SOURCE_COMPILES
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev >
Merge-request: !5223
2020-09-24 15:12:59 -04:00
Craig Scott
ac5195c408
Merge topic 'find_package-version-range'
...
5b3356263c CMakePackageConfigHelpers: Add version range support
6bfc442fde FPHSA: add support of version range
d7df81067b find_package: Add support of version range
09095dbcd2 cmFindPackageCommand: Refactoring
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev >
Merge-request: !5226
2020-09-24 07:29:03 -04:00
Brad King
d787dd2277
Merge topic 'intel-dpcpp'
...
887f3a88a6 Intel: Add Intel DPC++ compiler identification
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5255
2020-09-23 15:13:01 -04:00
Robert Maynard
357e2ef429
CheckSoureRuns: Add a unified way to check if a source runs
2020-09-23 12:28:37 -04:00
Robert Maynard
10ae907de0
CheckSoureCompiles: Add a unified way to check if a source compiles
2020-09-23 12:28:37 -04:00
Brad King
d827fdb6f9
Merge topic 'separate_arguments-program'
...
d832c1cc7d separate_arguments: add option PROGRAM
f4c21d4953 separate_arguments: refactoring
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5253
2020-09-23 12:05:26 -04:00
Brad King
f2daa025e3
{get,set}_property: Add support for referencing binary directories
...
Index directories by their binary directory path in addition to their
source directory path.
Fixes : #19262
2020-09-23 09:25:42 -04:00
Marc Chevrier
5b3356263c
CMakePackageConfigHelpers: Add version range support
2020-09-23 12:52:25 +02:00
Marc Chevier
6bfc442fde
FPHSA: add support of version range
2020-09-23 12:52:25 +02:00
Marc Chevier
d7df81067b
find_package: Add support of version range
...
This enhancement is the first step for solving issue #21107
2020-09-23 12:52:25 +02:00
Harini Chilamantula
887f3a88a6
Intel: Add Intel DPC++ compiler identification
...
The compiler identifies itself with the `__INTEL_DPCPP_COMPILER__`
preprocessor definition.
2020-09-22 15:20:03 -04:00
Marc Chevrier
d832c1cc7d
separate_arguments: add option PROGRAM
...
Fixes : #21217
2020-09-22 16:32:34 +02:00
Brad King
44c5f5d4ec
Merge topic 'cmake_path-updates'
...
82c9508313 cmake_path: enhancements
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !5245
2020-09-22 08:03:51 -04:00
Brad King
2c896c381b
Merge topic 'comp-ti-std-options'
...
6a66bb13ed Compiler/TI: Add std options for C++14
fe9cddf181 Compiler/TI: Add std options for C++98
55fc045aa8 Compiler/TI: Add std options for C11
2e69993101 Compiler/TI: Check default C standard
8300030f71 Compiler/TI: Check compiler version for C99 support
0b4582f229 Compiler/TI: Fix definition of std options
a70df0d6f0 Compiler/TI: Avoid generic variable name in macro
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5249
2020-09-22 07:48:24 -04:00
Brad King
966c3263c2
Merge topic 'file-ARCHIVE-compression-level'
...
195d14e781 file(ARCHIVE_CREATE): Add option to control compression level
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Cristian Adam <cristian.adam@gmail.com >
Merge-request: !5242
2020-09-22 07:43:31 -04:00
Brad King
cedc0a0329
Merge topic 'findcudatoolkit_cross_scattered'
...
9d3f7872e1 FindCUDAToolkit: Support scattered installations when crosscompiling
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5247
2020-09-22 07:40:34 -04:00
Asit Dhal
195d14e781
file(ARCHIVE_CREATE): Add option to control compression level
...
Fixes : #21125
2020-09-21 13:08:11 -04:00
Brad King
64901e053b
Merge topic 'xcode-12-new-build-system'
...
b8ecd4df5f ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system"
fe258f6382 Tests: Skip RunCMake.XcodeProject device cases for Xcode "new build system"
1c3d2d0951 Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system"
542884e527 Tests: Update RunCMake.XcodeProject cases for Xcode "new build system"
832a78be2d Tests: Update BuildDepends test for Xcode "new build system"
ff76c51ec3 Tests: Update RunCMake.file case with workaround for Xcode "new build system"
1806cdd17c Tests: Avoid duplicate custom commands for Xcode "new build system"
8d5f4c4db9 Xcode: Switch to the "new build system" for Xcode 12 and above
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5229
2020-09-21 09:10:48 -04:00
Josef Angstenberger
fe9cddf181
Compiler/TI: Add std options for C++98
...
The TI compiler does not support C++98, only C++03
(based on manual of current version).
This change sets the C++98 option to C++03 based on the fact that it
is done this way for the SunPro compiler already.
2020-09-21 00:57:20 +02:00
Raul Tambre
9d3f7872e1
FindCUDAToolkit: Support scattered installations when crosscompiling
...
Previously when CMAKE_CROSSCOMPILING was ON we'd end up not setting the target
directory if the non-scattered one didn't exist.
Fix this by assuming a scattered installation if the target directory isn't set
after the crosscompiling logic.
This is the same fix as commit 2c0d5d01ee (CUDA: Support scattered
installations when crosscompiling with Clang, 2020-09-14).
2020-09-20 17:35:12 +03:00
Marc Chevrier
82c9508313
cmake_path: enhancements
...
* Fix error on parsing "c:a" (root-name without root-directory)
* Enrich documentation
2020-09-20 15:17:34 +02:00
Brad King
8d5f4c4db9
Xcode: Switch to the "new build system" for Xcode 12 and above
...
Provide an option to switch back to the original build system via
`-T buildsystem=1`.
Fixes : #18088
2020-09-18 13:02:14 -04:00
Brad King
2db623f554
Xcode: Add option to specify build system variant
...
Extend the `-T <toolset>` option to support a `buildsystem=` field with
the Xcode generator. Add a `CMAKE_XCODE_BUILD_SYSTEM` variable to
inform project code about the selected build system variant.
2020-09-18 12:49:17 -04:00
Brad King
bb8afa0020
Merge topic 'string-json-support'
...
8eab76eb84 string(JSON): Adds JSON parsing support to the string command
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Acked-by: Cristian Adam <cristian.adam@gmail.com >
Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev >
Merge-request: !5159
2020-09-17 09:47:43 -04:00
Brad King
56c80c8c6d
Merge topic 'system-includes-for-clang-on-windows'
...
bb61c2d024 Clang: use -imsvc for system include dirs when running on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Raul Tambre <raul@tambre.ee >
Acked-by: Thomas Bernard <thomas@famillebernardgouriou.fr >
Merge-request: !5231
2020-09-17 09:44:55 -04:00