Commit Graph

58636 Commits

Author SHA1 Message Date
Klaas Speller
f0802b2f50 create_test_sourcelist: Add support for more special characters in paths
Use `cmSystemTools::MakeCidentifier` to robustly create a valid function
name to which the test path maps.

Fixes: #23855
2022-08-17 15:34:41 -04:00
Kitware Robot
ca2f19ca9c CMake Nightly Date Stamp 2022-08-16 00:01:09 -04:00
Brad King
4befac3b32 Merge topic 'nvtx3'
cd200c6c2d FindCUDAToolkit: nvtx3 target

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7568
2022-08-15 11:26:23 -04:00
Brad King
a1dbe7b317 Merge branch 'release-3.24' 2022-08-15 10:51:45 -04:00
Brad King
c5f6d93d5e Merge topic 'warning-as-error-ti-compiler'
1cd65dfa0e TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Josef Angstenberger <code@jtxa.de>
Merge-request: !7560
2022-08-15 10:51:45 -04:00
Brad King
732cad4952 Merge topic 'warning-as-error-ti-compiler' into release-3.24
1cd65dfa0e TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Josef Angstenberger <code@jtxa.de>
Merge-request: !7560
2022-08-15 10:51:44 -04:00
Brad King
c1285c1fc4 Merge branch 'release-3.24' 2022-08-15 10:48:27 -04:00
Brad King
d0a307ddcf Merge topic 'mingw-flto'
7b2a87c2eb IPO: Do not use -flto=auto with GCC 10.x on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7559
2022-08-15 10:48:27 -04:00
Brad King
2d08a35b50 Merge topic 'mingw-flto' into release-3.24
7b2a87c2eb IPO: Do not use -flto=auto with GCC 10.x on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7559
2022-08-15 10:48:26 -04:00
Kitware Robot
7f2eadafea CMake Nightly Date Stamp 2022-08-15 00:01:27 -04:00
Craig Scott
a57ad5eba3 Merge topic 'FetchContent-protobuf-example-CMP0077'
b57681dc34 FetchContent: Fix protobuf example to avoid CMP0077 warning

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7565
2022-08-14 01:17:27 -04:00
Craig Scott
db9453bbcf Merge topic 'doc-MSVC_RUNTIME_LIBRARY-init'
c1b07ca9da Help: MSVC_RUNTIME_LIBRARY is initialized from associated variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7566
2022-08-14 01:13:51 -04:00
Kitware Robot
6752268610 CMake Nightly Date Stamp 2022-08-14 00:01:09 -04:00
Raul Tambre
cd200c6c2d FindCUDAToolkit: nvtx3 target
nvtx3 is a header-only replacement for the previous shared library
implementations.

I implemented it as a separate target since while the header names match and
ideally it should be API compatible, forcing its include directory into the old
target would lengthen the include search path and could cause confusion or
possible build differences for projects using multiple build systems. This
keeps it explicit as a developer opt-in.

Implements: #21377
Resolves: #23835
2022-08-13 23:52:42 +03:00
Kitware Robot
dc5bf8f506 CMake Nightly Date Stamp 2022-08-13 00:01:12 -04:00
Harald Fernengel
b57681dc34 FetchContent: Fix protobuf example to avoid CMP0077 warning
The protobuf example would raise a "Policy CMP0077" warning and
protobuf tests would still be built, e.g. setting the variable is
ignored in latest CMake. Set an INTERNAL cache variable instead so
that CMP0077 warnings won't be triggered.
2022-08-13 09:44:45 +10:00
Craig Scott
cb2f1f644b Merge topic 'linux-var'
62cd3904bf variable: Set LINUX variable on Linux target systems

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7556
2022-08-12 19:32:45 -04:00
Craig Scott
c1b07ca9da Help: MSVC_RUNTIME_LIBRARY is initialized from associated variable
The CMAKE_MSVC_RUNTIME_LIBRARY variable docs mention that it
initializes the MSVC_RUNTIME_LIBRARY target property, but the
property's docs was missing any mention of the variable.
2022-08-13 09:11:35 +10:00
Kitware Robot
c4a07be926 CMake Nightly Date Stamp 2022-08-12 00:01:07 -04:00
Craig Scott
1cd65dfa0e TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property 2022-08-12 08:27:19 +10:00
Cristian Adam
62cd3904bf variable: Set LINUX variable on Linux target systems
Fixes: #23840
2022-08-12 07:20:05 +10:00
Kitware Robot
5d0685aa3e CMake Nightly Date Stamp 2022-08-11 00:01:15 -04:00
Brad King
7b2a87c2eb IPO: Do not use -flto=auto with GCC 10.x on Windows
Revise the change from commit fe57410b33 (IPO: Use -flto=auto if
compiler is GCC >= 10.1, 2022-06-22, v3.24.0-rc2~2^2) to require
at least GCC 11 on Windows.

Fixes: #23836
Issue: #23640
2022-08-10 14:49:34 -04:00
Brad King
1493ed10a1 Merge topic 'doc-ctest-multi-built-target'
ce58311b31 Help: --build-target can be repeated in ctest --build-and-test mode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7555
2022-08-10 09:24:02 -04:00
Brad King
7e580e48a4 Merge topic 'tutorial_genExp_rearrange'
ccba87b05b Tutorial: Move step 10 to step 4

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7506
2022-08-10 09:21:32 -04:00
Brad King
9d5a129a06 Merge topic 'FindGTK2-homebrew'
899390fd7b FindGTK2: Search homebrew paths for arch-specific headers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7552
2022-08-10 09:19:49 -04:00
Brad King
b77847acd0 Merge topic 'doc-cxx-modules'
5d76ff6019 Help: Fix formatting of CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API notes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7553
2022-08-10 09:18:59 -04:00
Brad King
20e544eb24 Merge topic 'fortran-module-dep'
219a9b1e14 Fortran: Fix suprious dependencies with submodules
a7211d6a2f Fortran: Teach lexer to handle CRLF newlines

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7529
2022-08-10 09:17:33 -04:00
Brad King
3907c08146 Merge topic 'ExternalProject-BUILD_ALWAYS-install'
81fd0d6e26 ExternalProject: Fix install on BUILD_ALWAYS+BUILD_BYPRODUCTS with Ninja
d9e88721ad ExternalProject: Add test case for BUILD_ALWAYS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7546
2022-08-10 09:14:33 -04:00
Craig Scott
ce58311b31 Help: --build-target can be repeated in ctest --build-and-test mode 2022-08-10 16:40:00 +10:00
Kitware Robot
29115e706a CMake Nightly Date Stamp 2022-08-10 00:01:10 -04:00
Brad King
5d76ff6019 Help: Fix formatting of CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API notes 2022-08-09 13:05:34 -04:00
Dominic Hamon
899390fd7b FindGTK2: Search homebrew paths for arch-specific headers
Without this, CMake fails to find brew-installed GTK2 on macOS.
With it, GTK2 is found.
2022-08-09 09:25:23 -04:00
Brad King
f7a13beaa4 Merge branch 'release-3.24' 2022-08-09 09:16:44 -04:00
Brad King
8100f11713 Merge topic 'FindThreads-msvc-no-pthread-flag'
7203963788 FindThreads: Skip check for -pthread flag when targeting the MSVC ABI

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7551
2022-08-09 09:16:43 -04:00
Brad King
425f6a0ef6 Merge topic 'FindThreads-msvc-no-pthread-flag' into release-3.24
7203963788 FindThreads: Skip check for -pthread flag when targeting the MSVC ABI

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7551
2022-08-09 09:16:42 -04:00
Vitaly Mogulian
219a9b1e14 Fortran: Fix suprious dependencies with submodules
In commit 695f0d0d3a (cmFortranParser: Parse keywords as lexical tokens,
2016-09-05, v3.7.0-rc1~150^2) we created keyword-specific variants of
the original `USE WORD other EOSTMT` production, such as
`MODULE WORD other EOSTMT` and `INTERFACE WORD other EOSTMT`.  The same
pattern was used by more keyword-specific productions in commit b5ac8b8aa7
(Fortran: Add support for submodule syntax in dependency scanning,
2016-09-05, v3.7.0-rc1~73^2~1).

The postfix part (`other`) of several keyword-specific productions is
not needed to match Fortran syntax.  See the Fortran 2018 standard,
para.4.1.4/1 on p.28, para.14.2.1/2 on pp.293-294.  The postfix is
needed only for a case of operator 'use':

    use <module-name> [, only : <list-of-vars>]

The unnecessary postfix matching from the keyword-specific productions
such as module, submodule, and interface declarations can cause spurious
module dependencies to be detected, so remove it.

Extend the test suite with examples covering the previously-broken
cases.

Fixes: #18427
2022-08-09 09:11:30 -04:00
Brad King
a7211d6a2f Fortran: Teach lexer to handle CRLF newlines
We read sources in binary format, so we need to explicitly match CR
(`\r`) characters that occur as part of newlines in CRLF sources.
This is particularly important when line continuation (`&`) occurs
in the middle of module declaration or usage.
2022-08-09 09:09:51 -04:00
Maik Nijhuis
81fd0d6e26 ExternalProject: Fix install on BUILD_ALWAYS+BUILD_BYPRODUCTS with Ninja
The `BUILD_BYPRODUCTS` option causes the ExternalProject's `build` step
in `build.ninja` to have `restat = 1`, so its "always out-of-date"
status caused by `BUILD_ALWAYS` does not propagate to the `install`
step.  Mark the latter step as explicitly always out-of-date too.

Fixes: #23820
2022-08-09 08:27:11 -04:00
Brad King
d9e88721ad ExternalProject: Add test case for BUILD_ALWAYS
We did not previously have a dedicated explicit test for this option.

Issue: #23820
2022-08-09 08:27:03 -04:00
Kitware Robot
241fc839d5 CMake Nightly Date Stamp 2022-08-09 00:01:12 -04:00
Markus Ferrell
ccba87b05b Tutorial: Move step 10 to step 4
Shifts steps 4-9 to 5-10.
2022-08-08 17:15:48 -04:00
Brad King
7203963788 FindThreads: Skip check for -pthread flag when targeting the MSVC ABI
Since commit 3257c34073 (FindThreads: avoid failing in AIX when using
-D_XOPEN_SOURCE=500, 2022-04-30, v3.24.0-rc1~197^2) we no longer check
for `pthreads.h` before checking for the `-pthread` flag.  Compilers
targeting the MSVC ABI do not have such a flag, so avoid performing the
check unnecessarily.

Fixes: #23829
2022-08-08 12:41:57 -04:00
Brad King
ed86192cd8 Merge topic 'doc-markup-program-options'
a6abdf6c8f Help: Consistent options declaration -- short first, then long
f4563f05db Help: Value for `--graphviz=` option actually is mandatory
04843d743e Help: Replace a bunch of more ``--option`` to `:option:` role
09446266ee Help: Replace mentions of ``-D`` option with :option:`-D` role
b57f27b087 Help: Replace mentions of ``-T`` and ``-A`` options with role
d25b232dee Help: Replace mentions of ``-G`` option with :option:`-G` role
63940e1cab Help: Replace mentions of ``-C`` option with :option:`-C` role
183a49cbfe Help: Replace mentions of ``-S`` option with :option:`-S` role
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7544
2022-08-08 09:39:41 -04:00
Kitware Robot
33d2491449 CMake Nightly Date Stamp 2022-08-08 00:01:11 -04:00
Kitware Robot
767052c372 CMake Nightly Date Stamp 2022-08-07 00:01:05 -04:00
Kitware Robot
40db0c34b6 CMake Nightly Date Stamp 2022-08-06 00:01:10 -04:00
Brad King
c3da25f3d9 Merge topic 'string-JSON-error-typo'
e0d3e6e147 string(JSON): Fix typo in error message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7547
2022-08-05 08:54:53 -04:00
Brad King
ac00b37ea2 Merge topic 'swift_debug'
20fe9cf7e9 Swift: Disable optimization when compiling in Debug

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7545
2022-08-05 08:53:58 -04:00
Brad King
9274bdff27 Merge topic 'find_package-one-more-path'
19366408fe cmFindPackageCommand: Protect overrides of `cmDirectoryListGenerator`
e55c154c5b cmFindPackageCommand: Add one more search path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7542
2022-08-05 08:53:09 -04:00