Evan Wilde
3fc971c38b
CheckSourceCompiles: For Swift executable, name source 'main.swift'
...
Xcode uses its own heuristics to determine whether or not to accept
top-level code in a source file while Ninja uses the swift driver
heuristics.
With the Swift driver, if the module contains a single file, that file
will be parsed as a top-level code context. With Xcode, the single file
will only be parsed as top-level code if the name of that file is
'main.swift'.
To ensure more consistent behavior between the two generators, if we're
building Swift and the try-compile target type is executable or
undefined, we name the file `main.swift` to ensure that both will handle
the single file as top-level code.
2022-10-24 12:39:21 -04:00
Evan Wilde
2345139ab5
CheckSourceCompiles: Add support for Swift
...
Plumb through swift `check_source_compiles` support. Add tests to check
that valid swift sources compile and invalid sources don't.
2022-10-24 12:39:21 -04:00
Brad King
4451a1f54f
Tests: Factor out a CMake_TEST_Swift variable for Swift test conditions
2022-10-24 12:37:50 -04:00
Brad King
f78ad6223a
Tests: Provide Apple inspection results to CMakeOnly and RunCMake tests
...
Re-order logic to make `CMake_TEST_XCODE_VERSION` and friends available
to the `Tests/CMakeOnly` and `Tests/RunCMake` directories.
2022-10-21 10:38:54 -04:00
Brad King
7629a1182c
Begin post-3.25 development
2022-10-11 11:16:01 -04:00
Brad King
a7e4445306
Merge branch 'release-3.25'
2022-10-11 11:14:51 -04:00
Brad King
5d132113b1
Begin 3.25 release versioning
2022-10-11 11:13:05 -04:00
Brad King
e4a53a50eb
Help: Drop development topic notes to prepare release
...
Release versions do not have the development topic section of
the CMake Release Notes index page.
2022-10-11 11:12:07 -04:00
Brad King
cfd149387e
Merge topic 'doc-3.25-relnotes'
...
286a40cb5b Help: Update Sphinx versionadded directives for 3.25 release
f93f97d6c2 Help: Organize and revise 3.25 release notes
c174ef23f4 Help: Consolidate 3.25 release notes
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7751
2022-10-11 11:10:56 -04:00
Brad King
f5e8251497
Merge topic 'doc-misc-trivial-cleanups'
...
321eb0c33d Help: Tasking compiler supports compile warning as error
f8b3b24915 Help: Minor grammar, typo and formatting cleanups
3de30134f1 Help: Re-sort property, variable and compiler id lists
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7769
2022-10-11 10:12:04 -04:00
Brad King
a804bf7007
Merge topic 'docutils-error-helper-deprecation'
...
294b6db533 Utilities/Sphinx: Avoid deprecated docutils error handling helpers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7777
2022-10-11 10:09:11 -04:00
Brad King
65554ead15
Merge topic 'ifw-missing-patch-releases'
...
de6764126a CPackIFW: Add support for missing QtIFW patch and minor releases
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7765
2022-10-11 10:07:41 -04:00
Brad King
bfe2f13557
Merge topic 'hip_windows_platform_module'
...
5b87ae6e2d HIP, Windows: Add Windows-Clang-HIP platform module
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7773
2022-10-11 10:06:27 -04:00
Brad King
c5cb85e42f
Merge topic 'required_hip_lang_package'
...
22051103b8 HIP: Find hip-lang-config.cmake with REQUIRED
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7771
2022-10-11 10:05:40 -04:00
Brad King
01768850b8
Merge topic 'hip_use_cmake_path'
...
6021fa7928 HIP: Convert clang output to cmake style paths
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7772
2022-10-11 10:04:48 -04:00
Brad King
294b6db533
Utilities/Sphinx: Avoid deprecated docutils error handling helpers
...
The `SafeString` and `ErrorString` classes are deprecated and will be
removed in Docutils 0.21 or later. They help avoid encoding errors
during exception handling in Python <= 2.7, but these days we always
use Python 3 to build the documentation, at least during development,
when error cases are most likely to occur.
Fixes : #24039
2022-10-11 10:01:12 -04:00
Brad King
2905210999
Merge topic 'test-RunCMake.install'
...
e73470991f Tests: Loosen RunCMake.install directory symlink expected output
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7775
2022-10-11 09:52:33 -04:00
Brad King
a473adeb9c
Merge branch 'release-3.24'
2022-10-11 09:50:22 -04:00
Brad King
c7d66af986
Merge branch 'release-3.23'
2022-10-11 09:50:20 -04:00
Brad King
5d24e9e09b
Merge branch 'release-3.23' into release-3.24
2022-10-11 09:49:59 -04:00
Brad King
eec8a7b681
Merge branch 'cpack-nsis-uninstaller' into release-3.24
...
Merge-request: !7774
2022-10-11 09:49:50 -04:00
Brad King
e32b49e4de
Merge topic 'cpack-nsis-uninstaller'
...
8721658959 CPack/NSIS: Fix installer not waiting for uninstaller to finish
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7774
2022-10-11 09:48:37 -04:00
Kitware Robot
e21071ec4b
CMake Nightly Date Stamp
2022-10-11 00:01:15 -04:00
Brad King
d82e2d557e
Merge branch 'cpack-nsis-uninstaller' into release-3.23
...
Merge-request: !7774
2022-10-10 10:43:41 -04:00
Mika Fischer
8721658959
CPack/NSIS: Fix installer not waiting for uninstaller to finish
...
In commit b795c96727 (CPack/NSIS: Fix uninstall command when run from
installer, 2022-03-21, v3.23.0-rc5~9^2~1) we incorrectly removed the
`_?` parameter when calling the uninstaller during installation.
This parameter is however essential for ExecWait to actually wait for
the uninstaller to finish. Without it, the uninstaller is started in
the background and installer and uninstaller run at the same time.
See https://nsis.sourceforge.io/Docs/Chapter3.html#installerusageuninstaller
Add back the `_?` parameter to fix this regression. Use another
approach to solve the problem motivating the original change.
Fixes : #24041
2022-10-10 10:41:45 -04:00
Brad King
4507237960
Merge topic 'verify-header-sets-iwyu'
...
6942234bf5 VERIFY_INTERFACE_HEADER_SETS: Add IWYU pragma: associated to verification file
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7762
2022-10-10 10:21:09 -04:00
Brad King
1fea40c85a
Merge topic 'cuda_sanitizer_false_positives'
...
59fcbba65e ctest_memcheck: ignore false-positives in CUDA's compute-sanitizer
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7760
2022-10-10 10:19:56 -04:00
Brad King
e73470991f
Tests: Loosen RunCMake.install directory symlink expected output
...
The case added by commit 85f01a1ec2 (file(INSTALL): Improve formatting
of symlink creation error, 2022-10-06) may print `Up-to-date:` or
`Installing:` for the file inside a symlinked directory based on
filesystem timestamp granularity. Since that output is not what the
test intends to cover, simply accept either possibility.
2022-10-10 09:55:43 -04:00
Brad King
b36f23035e
Merge branch 'release-3.24'
2022-10-10 09:50:52 -04:00
Brad King
eb59397ef8
Merge topic 'add_cuda_11.8_new_archs'
...
7f4cbf6594 CUDA: Add support for the two new architectures in 11.8
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7761
2022-10-10 09:50:52 -04:00
Brad King
db53376b1f
Merge topic 'add_cuda_11.8_new_archs' into release-3.24
...
7f4cbf6594 CUDA: Add support for the two new architectures in 11.8
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7761
2022-10-10 09:50:51 -04:00
Brad King
db11f1f4bb
Merge branch 'release-3.24'
2022-10-10 09:49:46 -04:00
Brad King
eebbe36ae6
Merge topic 'Intel-Fortran-warn-errors'
...
13f3382b1c Intel/IntelLLVM: Fortran has distinct "-Werror"-like flag
ab8a0a106e COMPILE_WARNING_AS_ERROR: Fix internal formatting of options table
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7758
2022-10-10 09:49:46 -04:00
Brad King
1aa7351f43
Merge topic 'Intel-Fortran-warn-errors' into release-3.24
...
13f3382b1c Intel/IntelLLVM: Fortran has distinct "-Werror"-like flag
ab8a0a106e COMPILE_WARNING_AS_ERROR: Fix internal formatting of options table
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7758
2022-10-10 09:49:45 -04:00
Brad King
6edcb1490a
Merge topic 'test-CheckSourceTree'
...
1912d50a70 Tests: Run CheckSourceTree test using just-built CMake
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7766
2022-10-10 09:48:40 -04:00
Craig Scott
1c8b4e2921
Merge topic 'doc-xcode-per-config-sources'
...
248cfb5b6e Help: The Xcode generator does not support per-config sources
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7764
2022-10-10 07:34:29 -04:00
Erlend E. Aasland
de6764126a
CPackIFW: Add support for missing QtIFW patch and minor releases
...
Fixes : #24035
2022-10-10 13:31:29 +02:00
Kitware Robot
86e7704d0e
CMake Nightly Date Stamp
2022-10-10 00:01:17 -04:00
Gergely Meszaros
5b87ae6e2d
HIP, Windows: Add Windows-Clang-HIP platform module
...
Add a platform module for using clang for HIP on windows, based on the
CXX module.
HIP language on windows works without this, but mixing with MSVC
produces catastrofical results.
Add the same restriction with HIP as C and C++ had prior:
Either none are compiled with MSVC or all are.
clang-cl support for HIP does not work yet: it needs more work in both
hip-lang-config.cmake and cmake itself.
2022-10-09 20:03:28 +02:00
Gergely Meszaros
6021fa7928
HIP: Convert clang output to cmake style paths
...
On windows the location of the rocm root directory as reported by clang
might be in windows style (with backslashes) which breaks the cache.
2022-10-09 19:47:20 +02:00
Gergely Meszaros
22051103b8
HIP: Find hip-lang-config.cmake with REQUIRED
...
Use REQUIRED for the find_package that loads the hip config, because
it may fail, e.g. because dependent libraries are not found. Before
this if the find_package failed cmake silently continued.
2022-10-09 19:19:45 +02:00
Kitware Robot
8b15f532db
CMake Nightly Date Stamp
2022-10-09 00:01:12 -04:00
Craig Scott
321eb0c33d
Help: Tasking compiler supports compile warning as error
2022-10-09 13:34:05 +11:00
Craig Scott
f8b3b24915
Help: Minor grammar, typo and formatting cleanups
2022-10-09 13:34:05 +11:00
Craig Scott
3de30134f1
Help: Re-sort property, variable and compiler id lists
2022-10-09 13:34:05 +11:00
Brad King
1912d50a70
Tests: Run CheckSourceTree test using just-built CMake
...
Update the change from commit 8d453ee751 (Tests: Improve CheckSourceTree
test, 2022-10-05) to drive the test script using the tested CMake
instead of the host CMake, following the convention of other tests.
2022-10-08 07:07:59 -04:00
Craig Scott
248cfb5b6e
Help: The Xcode generator does not support per-config sources
...
Fixes : #23106
2022-10-08 20:11:25 +11:00
Kitware Robot
5a0b9e5f88
CMake Nightly Date Stamp
2022-10-08 00:01:15 -04:00
Robert Maynard
7f4cbf6594
CUDA: Add support for the two new architectures in 11.8
...
CUDA 11.8 introduces ada ( 89 ), and hopper ( 90 ).
2022-10-07 15:58:53 -04:00
Daniel Hannon
6942234bf5
VERIFY_INTERFACE_HEADER_SETS: Add IWYU pragma: associated to verification file
2022-10-07 19:00:28 +01:00