summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Help: Specify advisable range for exit code in cmake_language(EXIT)Craig Scott2024-03-191-2/+7
| | | | | The limitations added here are documented in the bash shell's reference manual.
* Merge topic 'doc-project-include-vars-3.29' into release-3.29Brad King2024-03-185-10/+14
|\ | | | | | | | | | | | | | | dcb894fb00 Help: Update project() code injection for new 3.29 include behavior 09cf39ab07 Help: Improve wording of CMAKE_PROJECT_..._INCLUDE... changes for 3.29 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9343
| * Help: Update project() code injection for new 3.29 include behaviorCraig Scott2024-03-161-6/+6
| | | | | | | | | | | | Specifically, the various CMAKE_PROJECT_...INCLUDE... variables can now take a list of things, and those things can be module names too, not just file names.
| * Help: Improve wording of CMAKE_PROJECT_..._INCLUDE... changes for 3.29Craig Scott2024-03-164-4/+8
|/
* CMake 3.29.0-rc4v3.29.0-rc4Brad King2024-03-141-1/+1
|
* Merge topic 'Apple-TBD-in-subdirecory' into release-3.29Brad King2024-03-143-3/+17
|\ | | | | | | | | | | | | | | bcc26ce465 Apple Text Based Stubs: should be usage in subdirectories Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9341
| * Apple Text Based Stubs: should be usage in subdirectoriesMarc Chevrier2024-03-143-3/+17
| | | | | | | | Fixes: #25765
* | Merge branch 'release-3.28' into release-3.29Brad King2024-03-140-0/+0
|\ \
| * \ Merge topic 'autogen-makefile-depfile' into release-3.28Brad King2024-03-147-33/+38
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d2d1763f88 cmQtAutoGenInitializer: De-duplicate autogen/timestamp target depend logic 6193d15556 Autogen: Restore target-ordering dependencies in Makefiles with DEPFILE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9340
* | \ \ Merge topic 'autogen-makefile-depfile' into release-3.29Brad King2024-03-147-33/+38
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | d2d1763f88 cmQtAutoGenInitializer: De-duplicate autogen/timestamp target depend logic 6193d15556 Autogen: Restore target-ordering dependencies in Makefiles with DEPFILE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9340
| * | | cmQtAutoGenInitializer: De-duplicate autogen/timestamp target depend logicBrad King2024-03-141-24/+10
| | | | | | | | | | | | | | | | | | | | | | | | We place the same target ordering dependencies on either the `_autogen_timestamp_deps` target or the `_autogen` target. Refactor the logic to avoid duplicating that code.
| * | | Autogen: Restore target-ordering dependencies in Makefiles with DEPFILEBrad King2024-03-147-16/+35
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit aebfbcaa46 (AutoGen: Use depfiles for the XXX_autogen ninja targets, 2020-01-14, v3.17.0-rc1~58^2) the `_autogen_timestamp_deps` target was given target ordering dependencies through its custom command rather than direct target dependencies as on the `_autogen` target. Then commit 895fa3433f (cmQtAutoGenInitializer: support IMPLIB-only imported targets, 2021-09-23, v3.22.0-rc1~80^2) converted some target-level dependencies into file-level dependencies on the custom command. This only works with a monolithic build graph like Ninja. Since commit ebc9e448b3 (Autogen: Add depfile support for Makefiles, 2023-09-07, v3.28.0-rc1~101^2~1) we use the `_autogen_timestamp_deps` target in Makefile generators too. This exposed the missing target ordering dependency. Fixes: #25766
* | | Merge topic 'LINKER_TYPE-mold-support' into release-3.29Brad King2024-03-1412-14/+57
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 801ae06952 LINKER_TYPE: Support MOLD only on GCC versions that support it 939ac5287e LINKER_TYPE: fix spelling error in message 922883782b LINKER_TYPE: Document that linker tool should be in the PATH Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9334
| * | | LINKER_TYPE: Support MOLD only on GCC versions that support itMarc Chevrier2024-03-1311-14/+51
| | | | | | | | | | | | | | | | Fixes: #25748
| * | | LINKER_TYPE: fix spelling error in messageMarc Chevrier2024-03-122-2/+2
| | | |
| * | | LINKER_TYPE: Document that linker tool should be in the PATHMarc Chevrier2024-03-121-0/+6
| | | | | | | | | | | | | | | | Issue: #25748
* | | | Merge topic 'fc-MakeAvailable-leak-var' into release-3.29Brad King2024-03-141-13/+20
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 2b68048bdb FetchContent: Don't leak temporary variable and restore var robustly Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9338
| * | | FetchContent: Don't leak temporary variable and restore var robustlyCraig Scott2024-03-131-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In FetchContent_MakeAvailable(), the __fcprefix__ previously used when pushing the value of CMAKE_EXPORT_FIND_PACKAGE_NAME to the variable stack is not needed. The stack will never be empty at that point, so pushing an empty value will be handled correctly. By removing the __fcprefix__, we no longer need any temporary variable when restoring CMAKE_EXPORT_FIND_PACKAGE_NAME. But we need to ensure CMAKE_EXPORT_FIND_PACKAGE_NAME is left undefined if it wasn't defined before, and pushing an empty value doesn't let us distinguish between unset and set-but-empty. Therefore, when CMAKE_EXPORT_FIND_PACKAGE_NAME is undefined, push a specific value that can't be used by the project instead and check for that when popping it again. This ensures we can robustly distinguish the two cases and will always restore the right state. Fixes: #25758
* | | | Merge topic 'export-find_dependency-calls' into release-3.29Brad King2024-03-1329-26/+124
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3a739d4dcb EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9336
| * | | | EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gateBrad King2024-03-1229-26/+124
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Some design concerns have been raised after trying the 3.29 release candidates. Avoid committing to a stable public interface for now. Issue: #25767
* | | | Merge branch 'release-3.28' into release-3.29Brad King2024-03-130-0/+0
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge topic 'backport-3.28-ci-xcode-15.3' into release-3.28Brad King2024-03-134-9/+16
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8a6d05aa9d gitlab-ci: update macOS jobs to use Xcode 15.3 7bf893bc30 Tests: Update RunCMake.CheckCompilerFlag for Xcode 15.3 7f5f0ab4b3 Tests: Update RunCMake.CompileFeatures for Xcode 15.3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9333
* | \ \ \ Merge topic 'ci-xcode-15.3' into release-3.29Brad King2024-03-135-10/+17
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 682767e8a5 Merge branch 'backport-3.28-ci-xcode-15.3' e572986231 LinkerId: Update detection of linker tool for Xcode 15.3 8a6d05aa9d gitlab-ci: update macOS jobs to use Xcode 15.3 7bf893bc30 Tests: Update RunCMake.CheckCompilerFlag for Xcode 15.3 7f5f0ab4b3 Tests: Update RunCMake.CompileFeatures for Xcode 15.3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9333
| * | | | Merge branch 'backport-3.28-ci-xcode-15.3'Brad King2024-03-124-9/+16
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | gitlab-ci: update macOS jobs to use Xcode 15.3Brad King2024-03-121-6/+6
| | | | |
| | * | | Tests: Update RunCMake.CheckCompilerFlag for Xcode 15.3Brad King2024-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xcode passes a new `-use-frontend-parseable-output` flag to Swift that conflicts with our `-parseable-output` flag. Use a different flag for the test case.
| | * | | Tests: Update RunCMake.CompileFeatures for Xcode 15.3Brad King2024-03-122-1/+8
| | |/ / | | | | | | | | | | | | Xcode no longer puts an extra backslash in its `-std=` flags.
| * | | LinkerId: Update detection of linker tool for Xcode 15.3Brad King2024-03-121-1/+1
|/ / / | | | | | | | | | | | | | | | Xcode now prints extra `ExecuteExternalTool` lines that happen to mention the linker tool, but not in conjunction with actually linking something. Ignore them.
* | | Merge topic 'export-find_dependency-calls' into release-3.29Brad King2024-03-123-6/+6
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | b1c4806914 install(EXPORT): Drop REQUIRED from exported find_dependency calls Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9329
| * | install(EXPORT): Drop REQUIRED from exported find_dependency callsBrad King2024-03-113-6/+6
|/ / | | | | | | | | | | | | | | | | | | In commit c6e6861e63 (install(EXPORT): Export find_dependency() calls, 2023-11-07, v3.29.0-rc1~439^2~1) we made the calls `REQUIRED`. However, a dependency is only required if the dependent package is required. `find_dependency` already forwards the `REQUIRED` mark, and also already marks the dependent package as not found if the dependency is missing. Fixes: #25756
* | Merge topic 'ctest-j-default' into release-3.29Brad King2024-03-1148-208/+440
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5de1e21659 ctest: Allow passing -j without value to choose a contextual default bbcbcff7d9 cmCTestMultiProcessHandler: Modernize member initialization 7457b474a1 Tests: Remove unnecessary parallel suppression from CTestCoverageCollectGCOV ae69801d96 Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test case 30dda49416 Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test case Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9315
| * | ctest: Allow passing -j without value to choose a contextual defaultBrad King2024-03-1040-51/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under job server integration, added by commit 80fe56c481 (ctest: Add support for running under a make job server on POSIX systems, 2023-11-15, v3.29.0-rc1~324^2), use a very high default so that parallelism is effectively limited only by available job server tokens. Otherwise, choose a default limit based on the number of processors. Also allow passing `0` to specify unbounded parallelism. Fixes: #25739
| * | cmCTestMultiProcessHandler: Modernize member initializationBrad King2024-03-103-34/+23
| | |
| * | Tests: Remove unnecessary parallel suppression from CTestCoverageCollectGCOVBrad King2024-03-101-1/+0
| | | | | | | | | | | | | | | | | | This hasn't been necessary since commit ab7eda2591 (Tests: Remove unnecessary pass regex on CTestCoverageCollectGCOV, 2020-04-29, v3.18.0-rc1~239^2~2).
| * | Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test caseBrad King2024-03-106-48/+15
| | |
| * | Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test caseBrad King2024-03-105-75/+31
| | |
* | | Merge topic 'ctest-tests-from-file' into release-3.29Brad King2024-03-1120-36/+80
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 170ec48601 Help: Improve ctest tests-from-file documentation wording and wrapping 1a4837641e ctest: Remove unnecessary and ambiguous tests-from-file comment syntax d52c66bfb3 ctest: Honor tests-from-file options with empty input 8673264e25 Tests: Make ctest tests-from-file expected output more precise Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9322
| * | | Help: Improve ctest tests-from-file documentation wording and wrappingBrad King2024-03-081-4/+4
| | | |
| * | | ctest: Remove unnecessary and ambiguous tests-from-file comment syntaxBrad King2024-03-084-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test names can contain `#`. Since we ignore lines that do not match any test names anyway, "commenting" can still work without explicit syntax. Also drop whitespace trimming for similar reasons. Fixes: #25741
| * | | ctest: Honor tests-from-file options with empty inputBrad King2024-03-0811-22/+53
| | | | | | | | | | | | | | | | If the `--tests-from-file` input file is empty, no tests should run.
| * | | Tests: Make ctest tests-from-file expected output more preciseBrad King2024-03-087-3/+13
| | | |
* | | | Merge topic 'llvm-objdump' into release-3.29Brad King2024-03-112-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c51f84b96a GET_RUNTIME_DEPENDENCIES: Allow more whitespace before objdump's "DLL Name:" Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9325
| * | | | GET_RUNTIME_DEPENDENCIES: Allow more whitespace before objdump's "DLL Name:"Adrian Pop2024-03-102-2/+2
| |/ / / | | | | | | | | | | | | LLVM's `llvm-objdump` has spaces before "DLL Name:" instead of tabs.
* | | | Merge topic 'marmasm-language' into release-3.29Brad King2024-03-111-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | c34ef6c922 ASM_MARMASM: Remove broken partial support for preprocessor defines Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9326
| * | | ASM_MARMASM: Remove broken partial support for preprocessor definesAlexander Neumann2024-03-101-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid passing unsupported options to the assembler. In commit 3166547cf6 (ASM_MARMASM: Add support for Microsoft ARM assembler language, 2022-10-14, v3.26.0-rc1~383^2) we copied the assembler command line from `CMakeASM_MASMInformation`, but the `marmasm` tool does not accept `-D` command-line options. Issue: #24317
* | | Merge branch 'release-3.28' into release-3.29Brad King2024-03-080-0/+0
|\ \ \ | | |/ | |/|
| * | Merge topic 'cxxmodules-target-objects' into release-3.28Brad King2024-03-084-0/+42
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 4ddf0453d5 Tests/CXXModules: add a test using `TARGET_OBJECTS` from modules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9316
* | \ \ Merge topic 'cxxmodules-target-objects' into release-3.29Brad King2024-03-084-0/+42
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | 4ddf0453d5 Tests/CXXModules: add a test using `TARGET_OBJECTS` from modules Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9316
| * | | Tests/CXXModules: add a test using `TARGET_OBJECTS` from modulesBen Boeckel2024-03-064-0/+42
| |/ / | | | | | | | | | See: #25732
* | | Merge topic 'doc-https' into release-3.29Brad King2024-03-088-16/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 53a542936e Help: Convert http URLs to https Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9313