Commit Graph

50119 Commits

Author SHA1 Message Date
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
Kitware Robot 3ae3b352d1 CMake Nightly Date Stamp 2020-10-04 00:01:13 -04:00
Craig Scott da0dadf644 Merge topic 'FindSWIG-foreach-missing'
127436192d FindSWIG: Fix syntax error

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5313
2020-10-03 18:26:15 -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
Kitware Robot 63aa279343 CMake Nightly Date Stamp 2020-10-03 00:01:16 -04: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
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
Brad King 038b757561 Merge topic 'ctest-memcheck-compute-sanitizer'
050720f3ad CTest: add compute-sanitizer alias for cuda-memcheck

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5305
2020-10-02 08:35:06 -04:00
Marc Chevrier 0e2ffa93dd Merge topic 'FindPython-tests-optimizations'
5537ccd814 FindPython: Tests optimizations

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5307
2020-10-02 08:29:45 -04:00
Marc Chevrier b4a14fecb0 Merge topic 'optimize-cmListFileFunction'
e614528ad1 cmListFileCache: Make cmListFileFunction a shared pointer

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5228
2020-10-02 08:27:12 -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
Kitware Robot b3adccc8ed CMake Nightly Date Stamp 2020-10-02 00:01:13 -04:00
Brad King ad478a4a39 Merge topic 'ci-win-no-ExternalData'
a58e3c7e8b ci: Skip the Module.ExternalData test on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5311
2020-10-01 17:05:58 -04:00
Brad King a58e3c7e8b ci: Skip the Module.ExternalData test on Windows
This test spuriously fails too frequently and breaks our pipelines.
Pending further investigation into the race causing the failure, skip
the test on Windows for now.  The module is well covered by the test on
other platforms anyway.
2020-10-01 15:31:35 -04:00
Brad King 6dac9b28fe Merge topic 'ci-test-external-max-parallel'
22b3a1abd9 ci: support a max parallelism for test-ext jobs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5310
2020-10-01 14:10:49 -04:00
Brad King d1e859291f Merge topic 'doc-rel-ci'
7074b4c08c Help/dev: Add maintainer guide steps for CI packaging pipeline updates

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5309
2020-10-01 12:29:24 -04:00
Brad King 7074b4c08c Help/dev: Add maintainer guide steps for CI packaging pipeline updates 2020-10-01 12:16:24 -04:00
Marc Chevrier 5537ccd814 FindPython: Tests optimizations
* Use 'project(... LANGUAGES NONE)' when possible
* enhance error messages wording
2020-10-01 17:51:16 +02:00
Brad King 22b3a1abd9 ci: support a max parallelism for test-ext jobs
Machines may have more cores than testing actually supports.

Apply the change from commit e80362252f (ci: support a max parallelism
for tests, 2020-09-28) to tests in the test-ext stage too.
2020-10-01 11:22:31 -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 0519db374c Merge topic 'ci-linux-package'
1853201bfa gitlab-ci: hide modern whitespace attribute usage from old Git versions
bd83c9f073 gitlab-ci: add jobs to make Linux release packages
46b1fc2387 gitlab-ci: rename package-pipeline jobs to end in "-package"

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5286
2020-10-01 08:46:13 -04:00
Brad King 2e8b85b040 Merge topic 'macos-arm64'
b6c60f14b6 macOS: Default to arm64 architecture on Apple Silicon hosts
383e81aa60 Tests: Teach RunCMake to ignore Xcode internal objc warnings
8f75912176 Tests: Enable Assembler test case when CMAKE_OSX_ARCHITECTURES has one value

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5291
2020-10-01 08:45:13 -04:00
Brad King cb8c51a08e Merge topic 'cmake-gui-reference-manual'
0fe2ee3d43 CMake GUI: Add "CMake Reference Manual" help item
391ff1ec51 Refactor: Modernize cmSystemTools::FindCMakeResources()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5302
2020-10-01 08:17:11 -04: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 b1e1cb2d0d Merge topic 'msvc_implib'
7bda9a7fc7 VS: Make ImportLibary generation optional

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5282
2020-10-01 07:58:09 -04:00
Brad King 95aa5c40cf Merge topic 'find_package-check-dir'
2ff1693066 find_package: avoid showing files as directories when searching config files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5301
2020-10-01 07:57:23 -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
Ben Boeckel 1853201bfa gitlab-ci: hide modern whitespace attribute usage from old Git versions
The old Git doesn't understand our new `eol=` attribute usage, so make
it not care about the difference.
2020-10-01 07:32:23 -04:00
Ben Boeckel bd83c9f073 gitlab-ci: add jobs to make Linux release packages
These reuse the doc artifacts as the macOS package does.
2020-10-01 07:32:14 -04:00
Oleksandr Koval e614528ad1 cmListFileCache: Make cmListFileFunction a shared pointer
Passing cmListFileFunction everywhere by-value involves big overhead.
Now cmListFileFunction stores std::shared_ptr to the underlying data.
2020-10-01 14:28:03 +03:00
Brad King 46b1fc2387 gitlab-ci: rename package-pipeline jobs to end in "-package" 2020-10-01 07:26:37 -04:00
Brad King c70d083b43 Merge topic 'ci-continuous'
4e08ce720b gitlab-ci: add sphinx job to continuous build
ff72dbfb14 gitlab-ci: configure rules to enable continuous builds of staged MRs
a7afd8d3b0 gitlab-ci: use separate rules for dependent jobs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !5304
2020-10-01 07:22:49 -04:00
Marc Chevrier 1d300ee2a9 FindSWIG: Add version range support 2020-10-01 12:00:29 +02:00
Tobias Ribizel 050720f3ad CTest: add compute-sanitizer alias for cuda-memcheck 2020-10-01 09:01:01 +02:00
Kitware Robot 47b569a858 CMake Nightly Date Stamp 2020-10-01 00:01:15 -04:00
Kyle Edwards 0fe2ee3d43 CMake GUI: Add "CMake Reference Manual" help item
And switch the ordering of "Help" and "About".
2020-09-30 16:17:31 -04:00
Kyle Edwards 391ff1ec51 Refactor: Modernize cmSystemTools::FindCMakeResources()
Use cmStrCat(), cmStrLen(), and cmHasLiteralSuffix().
2020-09-30 16:13:10 -04:00
Brad King 4e08ce720b gitlab-ci: add sphinx job to continuous build 2020-09-30 15:00:59 -04:00
Brad King ff72dbfb14 gitlab-ci: configure rules to enable continuous builds of staged MRs
Configure rules to allow jobs for continuous builds to be enabled on a
project that configures a specific branch this purpose.
2020-09-30 15:00:56 -04:00
Brad King a7afd8d3b0 gitlab-ci: use separate rules for dependent jobs 2020-09-30 14:29:20 -04: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
Mark Jansen 7bda9a7fc7 VS: Make ImportLibary generation optional
Fixes: #21180
2020-09-30 12:11:54 -04:00
Brad King b6c60f14b6 macOS: Default to arm64 architecture on Apple Silicon hosts
Detect `arm64` hardware using a method that pierces Rosetta.  If
`CMAKE_OSX_ARCHITECTURES` is not set, pass explicit flags to the
toolchain to use `arm64` instead of letting the toolchain pick.

Fixes: #20989
2020-09-30 11:58:44 -04:00
Brad King 383e81aa60 Tests: Teach RunCMake to ignore Xcode internal objc warnings
Xcode on Apple Silicon warns:

    objc[...]: Class AMSupportURL... is implemented in both ...
    One of the two will be used. Which one is undefined.

Teach RunCMake to drop such lines before matching against expected
output.
2020-09-30 11:58:44 -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
sanchayanghosh 2ff1693066 find_package: avoid showing files as directories when searching config files
Teach `cmFileListGeneratorBase::Consider` to skip non-directories so
that all call sites get the check.

Fixes: #21212
2020-09-30 11:50:23 -04:00
Marc Chevrier e4b7049230 FindPython: Add version range support
Fixes: #21107
2020-09-30 14:30:23 +02:00