Commit Graph

69890 Commits

Author SHA1 Message Date
Martin Duffy
40039ddbac Help: Document backtrace member of link commandFragments in FileApi manual 2025-03-14 11:18:48 -04:00
Brad King
d54916d03a MSVC: Revert use of temporary -std:c++23preview flag for C++23
Revert commit b3f1c60aff (MSVC: Use -std:c++23preview flag for C++23
when available, 2025-03-12), except for the VS flag table update.
MSVC documentation states that the flag will be removed in the future
when `-std:c++23` is added.  Therefore it is only suitable for manual
specification by end-users.

Issue: #26692
2025-03-14 09:55:18 -04:00
Kitware Robot
849bf7e819 CMake Nightly Date Stamp 2025-03-14 06:48:49 -04:00
Matthew Woehlke
63c96e76f9 cmPackageInfoReader: Fix default configurations
Fix two minor issues with how default configurations are set from CPS
packages. First, imported configurations were (appropriately) being
converted to upper case, but default configurations weren't. Second,
default configurations were being set only after importing components
from the root package configuration file, resulting in configurations
specified in the root file preceding the default configurations.
2025-03-13 14:27:58 -04:00
Brad King
41d91387f6 Merge branch 'backport-3.31-file-MAKE_DIRECTORY-result-var' 2025-03-13 11:58:47 -04:00
Brad King
3dd701c068 Merge branch 'backport-3.31-file-MAKE_DIRECTORY-result-var' (early part) 2025-03-13 11:58:24 -04:00
Brad King
397ec37528 file(MAKE_DIRECTORY): Do not make directories for command keywords
In commit 95323c90a1 (file(MAKE_DIRECTORY): Add optional RESULT keyword
to capture failure., 2024-06-16, v3.31.0-rc1~414^2) we computed an
updated range of arguments, that name directories to be created, before
the `RESULT` keyword.  However, we forgot to use it in the loop.

Fixes: #26768
2025-03-13 11:57:53 -04:00
Brad King
a039a1655d file(MAKE_DIRECTORY): Clarify formatting of unexpected arguments error 2025-03-13 11:57:27 -04:00
Brad King
90d9c79348 file(MAKE_DIRECTORY): Do not make directories for command keywords
In commit 95323c90a1 (file(MAKE_DIRECTORY): Add optional RESULT keyword
to capture failure., 2024-06-16, v3.31.0-rc1~414^2) we computed an
updated range of arguments, that name directories to be created, before
the `RESULT` keyword.  However, we forgot to use it in the loop.

Fixes: #26768
2025-03-13 11:57:25 -04:00
Victor Brunini
ce45045d50 FortranCInterface: Add support for Cray module mangling
Cray Fortran uses mangling of the form `my_sub$my_module_` with the
subroutine name first.  Teach FortranCInterface to detect this case.
Add `FortranCInterface_MODULE_{,_}ORDER` result variables to report it.

With optimizations on, Cray Fortran inlines the module subroutine into
the calling object, so our symbol with the `INFO` string is not used.
Add a directive to suppress inlining to avoid this.
2025-03-13 10:18:02 -05:00
Martin Duffy
f134468a98 JSON: Improve JSON error message formatting
This improves the output of JSON-related error messages. It adds the filename to
the output and excludes the column number.

This is particularly useful when there are multiple JSON files being read that
could be responsible for an error, ie CMakePresets.json and
CMakeUserPresets.json, or multiple instrumentation queries.

Issue: #26717
2025-03-13 10:44:31 -04:00
Brad King
5d1ec25c60 Merge topic 'test-cray-clang'
a5f5a87482 Tests/RunCMake/if: Optionally skip checking write-only directory permissions
2a37015319 Tests/FortranModules: Skip submodules with Cray Fortran compiler
fa4ac78f4a Tests/FortranModules: Simplify check for submodules support
2c28321adb Tests: Combine conditions for BundleUtilities test
6dfd8e19b5 GetPrerequisites: Recognize CrayPE system libraries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10464
2025-03-13 09:46:51 -04:00
Brad King
b040b91b2b Merge topic 'cpack-project-path'
2d9ae9de96 CPack: Allow source-relative CPACK_PROJECT_CONFIG_FILE

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10461
2025-03-13 09:44:20 -04:00
Brad King
776c4e628a Merge topic 'patch-FindWget'
24de3b49c3 FindWget: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10460
2025-03-13 09:43:03 -04:00
Brad King
2b132d60d4 Merge branch 'release-4.0' 2025-03-13 09:41:48 -04:00
Brad King
0e570a6017 Merge branch 'release-3.31' 2025-03-13 09:41:41 -04:00
Brad King
310cf73195 Merge branch 'release-3.31' into release-4.0 2025-03-13 09:41:34 -04:00
Brad King
7ad544e3fe Merge branch 'release-4.0' 2025-03-13 09:40:55 -04:00
Brad King
3f29c9d457 Merge topic 'msvc-c++23'
b3f1c60aff MSVC: Use -std:c++23preview flag for C++23 when available
1b4a802413 MSVC: Split C++23 flag selection into dedicated block

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10462
2025-03-13 09:40:55 -04:00
Brad King
5cfb301524 Merge topic 'msvc-c++23' into release-4.0
b3f1c60aff MSVC: Use -std:c++23preview flag for C++23 when available
1b4a802413 MSVC: Split C++23 flag selection into dedicated block

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10462
2025-03-13 09:40:53 -04:00
Brad King
681a66ba8e Merge topic 'msvc-c++23' into release-3.31
b3f1c60aff MSVC: Use -std:c++23preview flag for C++23 when available
1b4a802413 MSVC: Split C++23 flag selection into dedicated block

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10462
2025-03-13 09:39:45 -04:00
Peter Kokot
7bc642a7eb
CheckLanguage: Add include() to example and reword documentation 2025-03-13 14:26:24 +01:00
Kitware Robot
8ba32e562b CMake Nightly Date Stamp 2025-03-13 00:04:11 -04:00
Brad King
a5f5a87482 Tests/RunCMake/if: Optionally skip checking write-only directory permissions
Some file systems do not support this.
2025-03-12 16:58:46 -04:00
Brad King
2a37015319 Tests/FortranModules: Skip submodules with Cray Fortran compiler
Issue: #18925
2025-03-12 16:39:23 -04:00
Brad King
fa4ac78f4a Tests/FortranModules: Simplify check for submodules support 2025-03-12 16:37:54 -04:00
Brad King
2c28321adb Tests: Combine conditions for BundleUtilities test 2025-03-12 16:37:54 -04:00
Brad King
6dfd8e19b5 GetPrerequisites: Recognize CrayPE system libraries 2025-03-12 16:37:14 -04:00
Brad King
b3f1c60aff MSVC: Use -std:c++23preview flag for C++23 when available
This was added by VS 17.13.

Fixes: #26692
2025-03-12 14:50:32 -04:00
Brad King
1b4a802413 MSVC: Split C++23 flag selection into dedicated block 2025-03-12 14:50:31 -04:00
Peter Kokot
24de3b49c3
FindWget: Update documentation 2025-03-12 18:08:25 +01:00
Nikita Nemkin
2d9ae9de96 CPack: Allow source-relative CPACK_PROJECT_CONFIG_FILE
Resolve relative CPACK_PROJECT_CONFIG_FILE explicitly at config
generation time. Otherwise, it will be resolved at runtime
relative to the CPack execution directory (which could be anything).

Additionally, issue a warning if reading PACK_PROJECT_CONFIG_FILE
fails at runtime.

Fixes: #15522
2025-03-12 20:37:01 +05:00
Brad King
7e2a1994f8 Merge topic 'ccmake-cursor'
fa96d1b42d ccmake: Show the cursor only when in text editing mode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10455
2025-03-12 09:26:56 -04:00
Brad King
47ceb32cf3 Merge topic 'patch-CMakeBackwardCompatibilityCXX'
9883281982 CMakeBackwardCompatibilityCXX: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10459
2025-03-12 09:26:05 -04:00
Brad King
069cc12f4e Merge topic 'patch-TestForSSTREAM'
c2eb4b58c0 TestForSSTREAM: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10457
2025-03-12 09:24:47 -04:00
Brad King
601277ed4e Merge topic 'patch-TestForANSIForScope'
8f25772351 TestForANSIForScope: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10453
2025-03-12 09:23:36 -04:00
Brad King
8747ff63cd Merge topic 'patch-TestForANSIStreamHeaders'
8c2cd72a0f TestForANSIStreamHeaders: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10456
2025-03-12 09:21:39 -04:00
Brad King
438277297f Merge topic 'patch-TestForSTDNamespace'
ef0119f57f TestForSTDNamespace: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10458
2025-03-12 09:20:13 -04:00
Brad King
85d1b74386 Merge topic 'pdb-name-genex-support'
15a1769bd8 GenEx: Add support for PDB_NAME and COMPILE_PDB_NAME

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: nicolas loxol <nicolas.loxol@gmail.com>
Acked-by: Giacomo Rombaut <giacomo.rombaut@gmail.com>
Merge-request: !10418
2025-03-12 09:12:12 -04:00
Brad King
b7abc78e6c Merge topic 'pkg-config-import-populate'
28a92bde80 PkgC: Implement cmake_pkg_config IMPORT / POPULATE
7f172faca5 Help: Add install() section heading for common options

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10393
2025-03-12 09:06:04 -04:00
Kitware Robot
4dc16577c5 CMake Nightly Date Stamp 2025-03-12 00:04:31 -04:00
Brad King
608f07bc77 Merge branch 'release-4.0' 2025-03-11 14:01:09 -04:00
Nikita Nemkin
fa96d1b42d ccmake: Show the cursor only when in text editing mode
Additionally, stretch the current row highlight to cover the whole
left column.

Fixes: #4025
2025-03-11 22:53:34 +05:00
Brad King
f7f8fd59da CMake 4.0.0-rc4 2025-03-11 13:12:16 -04:00
Vito Gamberini
28a92bde80
PkgC: Implement cmake_pkg_config IMPORT / POPULATE
Issue: #26067
2025-03-11 11:24:07 -04:00
Peter Kokot
c2eb4b58c0
TestForSSTREAM: Update documentation
This describes the module in more details to make upgrading code easier.

Additionally, also the CMAKE_HAS_ANSI_STRING_STREAM cache variable is
described as it was already briefly documented at the
CMakeBackwardCompatibilityCXX module.
2025-03-11 16:05:12 +01:00
Peter Kokot
8f25772351
TestForANSIForScope: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 16:02:22 +01:00
Peter Kokot
8c2cd72a0f
TestForANSIStreamHeaders: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 16:00:15 +01:00
Peter Kokot
ef0119f57f
TestForSTDNamespace: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 15:57:13 +01:00
Peter Kokot
9883281982
CMakeBackwardCompatibilityCXX: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 15:54:39 +01:00