summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cmCoreTryCompile: use the source type context for source filesBen Boeckel2023-07-3111-21/+137
| | | | | | | Also add a test to `RunCMake/CXXModules` to test `try_compile` with C++ modules. Fixes: #25097
* cmArgumentParser: support storing a context value with parsingBen Boeckel2023-07-311-0/+32
| | | | | | | | | | | | | | This allows for parsing of contextual keywords. For example: ``` some_command( ARG_WITH_CONTEXT foo CONTEXT bar ARG_WITH_CONTEXT quux) ``` will be able to store that `foo` happened without context (or, rather, its default value) and `quux` was provided in a `bar` context.
* cmCoreTryCompile: parse `SOURCES_TYPE` argumentBen Boeckel2023-07-314-1/+81
| | | | | | This will serve to add context for the source listing in order to properly mark sources as `FILE_SET TYPE CXX_MODULES` in the generated code.
* cmCoreTryCompile: use `target_sources` for `try_compile` targetsBen Boeckel2023-07-311-3/+4
| | | | | In order to support using C++ module sources in `try_compile`, `target_sources` will be required. To prepare, always use the command.
* cmExperimental: support forwarding associated variables to `try_compile`Ben Boeckel2023-07-313-4/+17
| | | | | Other variables may be needed to make experimental features actually work. List them with the experimental flag.
* cmExperimental: only forward C++ module support to non-ABI checksBen Boeckel2023-07-313-3/+7
| | | | | ABI checks never use modules, so don't forward the experimental status through.
* cmExperimental: use an `enum` for whether to forward to try_compileBen Boeckel2023-07-313-5/+12
|
* Modules/Internal/FeatureTesting: mark feature testing as a special testBen Boeckel2023-07-311-0/+1
|
* Merge topic 'test-target-property-init'Brad King2023-07-3123-6/+724
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b66c494ca4 Tests/RunCMake/property_init: test 'with_exports' properties efad4391e5 Tests/RunCMake/property_init: test 'with_commands' properties 5f1bf85f84 Tests/RunCMake/property_init: test 'with_artifact' properties 02972ed9e8 Tests/RunCMake/property_init: test 'shared_library' properties 653a32aa72 Tests/RunCMake/property_init: test 'pic_targets' properties 141049cf16 Tests/RunCMake/property_init: test 'normal' properties bc318ceb7f Tests/RunCMake/property_init: test 'non_imported' properties 0b56e3fedd Tests/RunCMake/property_init: test 'normal_non_imported' properties ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8655
| * Tests/RunCMake/property_init: test 'with_exports' propertiesBen Boeckel2023-07-292-0/+52
| |
| * Tests/RunCMake/property_init: test 'with_commands' propertiesBen Boeckel2023-07-292-0/+14
| |
| * Tests/RunCMake/property_init: test 'with_artifact' propertiesBen Boeckel2023-07-292-0/+20
| |
| * Tests/RunCMake/property_init: test 'shared_library' propertiesBen Boeckel2023-07-292-0/+13
| |
| * Tests/RunCMake/property_init: test 'pic_targets' propertiesBen Boeckel2023-07-292-0/+22
| |
| * Tests/RunCMake/property_init: test 'normal' propertiesBen Boeckel2023-07-292-0/+11
| |
| * Tests/RunCMake/property_init: test 'non_imported' propertiesBen Boeckel2023-07-292-0/+12
| |
| * Tests/RunCMake/property_init: test 'normal_non_imported' propertiesBen Boeckel2023-07-292-0/+10
| |
| * Tests/RunCMake/property_init: test 'linkable' propertiesBen Boeckel2023-07-292-0/+13
| |
| * Tests/RunCMake/property_init: test 'library_with_artifact' propertiesBen Boeckel2023-07-292-0/+11
| |
| * Tests/RunCMake/property_init: add `per_config` table builder helperBen Boeckel2023-07-291-0/+35
| |
| * Tests/RunCMake/property_init: test 'imported' propertiesBen Boeckel2023-07-292-0/+10
| |
| * Tests/RunCMake/property_init: test 'executable' propertiesBen Boeckel2023-07-292-0/+26
| |
| * Tests/RunCMake/property_init: test 'can_compile' propertiesBen Boeckel2023-07-292-0/+275
| |
| * Tests/RunCMake/property_init: test 'always' propertiesBen Boeckel2023-07-292-0/+17
| | | | | | | | All targets get these targets initialized.
| * Tests/RunCMake/property_init: add a function to test propertiesBen Boeckel2023-07-291-0/+57
| | | | | | | | | | | | | | | | | | This function consumes a property table and tests against every kind of target: those for which the initialization happens and those that should ignore them. Also add a function that can build the pairs of target type lists required.
| * Tests/RunCMake/property_init: add functions to make example targetsBen Boeckel2023-07-294-1/+58
| |
| * Tests/RunCMake/property_init: add a function to parse property tablesBen Boeckel2023-07-291-0/+29
| | | | | | | | | | | | The tables will be triples of property / value / alias value. Parsing is a bit tricky, but is easier when `foreach (IN ZIP_LISTS)` with the values in their distinct list.
| * Tests/RunCMake/property_init: add a function to check a propertyBen Boeckel2023-07-291-0/+24
| |
| * Tests/RunCMake/property_init: add skeleton for testingBen Boeckel2023-07-293-0/+8
| |
| * cmTarget: handle `HIP_STANDARD` like other language standardsBen Boeckel2023-07-291-2/+3
| |
| * Help: fix agreement in `DLL_NAME_WITH_SOVERSION` docsBen Boeckel2023-07-291-2/+2
| |
| * Help: fix cross-linking from `Swift_LANGUAGE_VERSION` propertyBen Boeckel2023-07-291-2/+3
| |
* | Merge topic 'ci-debian-12'Brad King2023-07-31167-1125/+1048
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 241ee252ce IWYU: Update for Debian 12 CI job 09db788636 ci: use Debian 12 images and environments 9526679bbc ci: Update base images to Debian 12 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8669
| * | IWYU: Update for Debian 12 CI jobBrad King2023-07-28136-1020/+950
| | | | | | | | | | | | | | | | | | `include-what-you-use` diagnostics, in practice, are specific to the environment's compiler and standard library. Update includes to satisfy IWYU for our CI job under Debian 12.
| * | ci: use Debian 12 images and environmentsBrad King2023-07-2817-66/+59
| | |
| * | ci: Update base images to Debian 12Brad King2023-07-2815-39/+39
| | |
* | | CMake Nightly Date StampKitware Robot2023-07-311-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2023-07-301-1/+1
| |/ |/|
* | CMake Nightly Date StampKitware Robot2023-07-291-1/+1
| |
* | Merge topic 'xcframework-find-library'Kyle Edwards2023-07-285-0/+40
|\ \ | | | | | | | | | | | | | | | | | | 9bf8f7de06 find_library(): Add support for .xcframework Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8661
| * | find_library(): Add support for .xcframeworkKyle Edwards2023-07-285-0/+40
| | | | | | | | | | | | Issue: #21752
* | | Merge topic 'readme-bootstrap'Brad King2023-07-281-2/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | 803a79dd69 README: Update bootstrap example to use 'build' directory under source Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Craig Scott <craig.scott@crascit.com> Merge-request: !8662
| * | README: Update bootstrap example to use 'build' directory under sourceBrad King2023-07-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | When the example was first written, developers commonly placed their build trees as siblings of the source tree. Nowadays many developers use a `build/` directory under the top-level source directory instead. Update the example with the modern convention to avoid requiring the reader to understand that `cmake-source` is a placeholder for the path to the source tree.
* | | Merge topic 'ExportTestLabelToJUnit'Brad King2023-07-282-1/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2b99e64413 set_test_properties: link to the test properties in the documentation b11e8afbfa ctest: export test labels to junit xml Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8635
| * | | set_test_properties: link to the test properties in the documentationAlex Neundorf2023-07-261-1/+1
| | | | | | | | | | | | | | | | It was linking to the target properties, this was probably an oversight.
| * | | ctest: export test labels to junit xmlAlex Neundorf2023-07-261-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this patch, the junit files written by ctest also contain the test labels as testcase properties, see https://github.com/testmoapp/junitxml#properties The name for the property is "cmake_labels", where "cmake_" is used namespace-like. This could be done the same way if we export more properties to junit. Also this makes it clear to consumers that this is coming from cmake, and the list is a cmake-formatted string.
* | | | Merge branch 'release-3.27'Brad King2023-07-280-0/+0
|\ \ \ \
| * \ \ \ Merge topic 'cxx-atomic' into release-3.27Brad King2023-07-286-7/+25
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78bbd58545 Source: Link libatomic when needed on Linux 32-bit ARM Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8663
* | \ \ \ \ Merge topic 'cxx-atomic'Brad King2023-07-286-7/+25
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78bbd58545 Source: Link libatomic when needed on Linux 32-bit ARM Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8663
| * | | | | Source: Link libatomic when needed on Linux 32-bit ARMBrad King2023-07-276-7/+25
| |/ / / / | | | | | | | | | | | | | | | Fixes: #25114