summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Ninja: Add option for parallel installMartin Duffy2024-05-2313-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the global property ``INSTALL_PARALLEL`` to enable a parallel install target for Ninja. Fixes: #25459
* | | | | | Tests: Improve documentation of ADD_TEST_MACRODave Abrahams2024-05-231-2/+10
| |/ / / / |/| | | |
* | | | | Merge topic 'test-CMAKE_Swift_MODULE_DIRECTORY'Brad King2024-05-221-0/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | acfcce7e1b Swift: test that CMAKE_Swift_MODULE_DIRECTORY is respected. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9524
| * | | | | Swift: test that CMAKE_Swift_MODULE_DIRECTORY is respected.Dave Abrahams2024-05-161-0/+11
| | | | | |
* | | | | | GenEx: Add support for custom transitive link propertiesBrad King2024-05-218-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a new `TRANSITIVE_LINK_PROPERTIES` property in the target's link closure to enable transitive evaluation of named properties through the link closure, including entries guarded by `$<LINK_ONLY:...>`. Fixes: #20416
* | | | | | GenEx: Add support for custom transitive compile propertiesBrad King2024-05-2112-0/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a new `TRANSITIVE_COMPILE_PROPERTIES` property in the target's link closure to enable transitive evaluation of named properties through the link closure, excluding entries guarded by `$<LINK_ONLY:...>`. Issue: #20416
* | | | | | Merge topic 'test-race-aix'Brad King2024-05-211-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ced5932cf Tests/RunCMake/CompileFeatures: Avoid intermittent failures on AIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9537
| * | | | | | Tests/RunCMake/CompileFeatures: Avoid intermittent failures on AIXBrad King2024-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply the fix from commit b3245f33ef (Tests/RunCMake/install: Avoid intermittent failures on AIX, 2024-05-10) to `RunCMake.CompileFeatures` too.
* | | | | | | Tests/RunCMake/Swift: Update for ninja post-1.12 developmentBrad King2024-05-201-1/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream ninja commit `8e6c741a4b` ("explain" debug prints just before each command is run, 2022-01-06) changed the `ninja -d explain` output for our test case. The `IncrementalSwift-second` case primarily needs to match stdout, so update our stderr expectation to work for either form of ninja's output.
* | | | | | Merge topic 'fetchcontent-direct'Craig Scott2024-05-1819-54/+105
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7bf15e49a8 ExternalProject: Fix misleading git update output b2496bf14c FetchContent: Populate directly without a sub-build 173daad58d ExternalProject: Move more internal commands out of main file 462e583267 ExternalProject: Switch download, update and patch to use _EP_ vars 0ccc8e340d ExternalProject: Provide ExternalProject_Add keywords through a macro 91e1015722 ExternalProject: Don't treat YES as a keyword a1743ce1ef ExternalProject: Fix minor formatting error Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9513
| * | | | | FetchContent: Populate directly without a sub-buildCraig Scott2024-05-1712-43/+94
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21703
| * | | | | ExternalProject: Move more internal commands out of main fileCraig Scott2024-05-137-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commands moved to shared_internal_commands.cmake will soon be used directly by FetchContent, which cannot always include the full ExternalProject.cmake file (e.g. it may be used in CMake script mode). Issue: #21703
* | | | | | Merge topic 'ewilde/swift-static-try-compile'Brad King2024-05-172-0/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c6e52ef7f2 Swift: Support static-library try-compile type Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9520
| * | | | | | Swift: Support static-library try-compile typeEvan Wilde2024-05-152-0/+15
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Top-level code only works as part of executables, which breaks when `CMAKE_TRY_COMPILE_TARGET_TYPE` is set to `STATIC_LIBRARY`. This patch fixes the test to something agnostic between executables and libraries while still verifying that we can import types from the standard library. Fixes: #25984
* | | | | | Merge topic 'LINK_LIBRARY-Feature-properties'Brad King2024-05-1624-3/+127
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6e5e7968c3 GenEx $<LINK_LIBRARY>: Add the support of properties attached to features Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9510
| * | | | | | GenEx $<LINK_LIBRARY>: Add the support of properties attached to featuresMarc Chevrier2024-05-1524-3/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #24504, #25954
* | | | | | | Merge topic 'custom-command-output-hash-character'Brad King2024-05-167-27/+18
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d2a503c1e add_custom_command: Allow OUTPUT filenames containing a hash '#' character b38000d774 cmGlobalXCodeGenerator: Re-implement legacy makefile path escaping d929089687 cmGlobalXCodeGenerator: Do not use legacy makefile escaping in shell commands d61fc2c52e cmGlobalXCodeGenerator: Migrate legacy makefile path escaping to local helper 6010e007c7 cmState: Add method to check for the Borland Makefiles generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9514
| * | | | | | | add_custom_command: Allow OUTPUT filenames containing a hash '#' characterGlenn Coombs2024-05-157-27/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most generators now support this character after escaping and quoting cleanups over time. Disallow it only on generators that do support it. Fixes: #25604
* | | | | | | | Merge topic 'import-std-experimental-docs'Brad King2024-05-162-2/+2
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a46395df06 importstd: clarify when the experimental UUID must be available Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9522
| * | | | | | | importstd: clarify when the experimental UUID must be availableBen Boeckel2024-05-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25980
* | | | | | | | Merge topic 'test-execute_process-abnormal-exit'Brad King2024-05-158-17/+31
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 151a7d63dd Tests: Cover execute_process with abnormal exit on all platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9518
| * | | | | | | | Tests: Cover execute_process with abnormal exit on all platformsBrad King2024-05-148-17/+31
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a dedicated helper program instead of a Python script. This also avoids an interactive popup on macOS. Fixes: #25973
* | | | | | | | Merge topic 'cmp0037-message'Brad King2024-05-159-0/+40
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c773d5b436 CMP0037: Restore diagnostic message for invalid ALIAS target names Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9519
| * | | | | | | CMP0037: Restore diagnostic message for invalid ALIAS target namesBrad King2024-05-149-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit 7a4c02cb38 (cmGlobalGenerator: factor out messaging for CMP0037, 2023-09-24, v3.28.0-rc1~39^2~7) incorrectly switched to reporting the aliased target name instead of the invalid name of the alias itself. Fixes: #25979
| * | | | | | | Merge topic 'cxxmodules-build-export-different-directory' into release-3.28Brad King2024-05-0310-0/+149
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec35251510 cmDyndepCollation: look at all `export(TARGETS)` calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9485
| * \ \ \ \ \ \ \ Merge topic 'export-name-safe-name' into release-3.28Brad King2024-05-017-0/+298
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 142a85f9c1 cxxmodules: use filesystem-safe export names in filenames 4452d41488 cmGeneratorTarget: add method to get a filesystem-safe export name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9474
* | | | | | | | | | ci: Enable CPack NuGet generator tests in a nightly job on WindowsBrad King2024-05-141-7/+2
| |_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Drop the environment-based heuristic.
* | | | | | | | | Merge topic 'FindPython-WIN32-DEBUG'Brad King2024-05-1438-42/+48
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c164404b2e FindPython: On Windows, Enhance python debug version support Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Osyotr <zhenchik35026@gmail.com> Merge-request: !9482
| * | | | | | | | | FindPython: On Windows, Enhance python debug version supportMarc Chevrier2024-05-0938-42/+48
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following variables: * Python_EXECUTABLE_DEBUG * Python_INTERPRETER * Python_DEBUG_POSTFIX and target Python::InterpreterDebug. python_add_library() command Manage DEBUG_POSTFIX target property based on the value of Python_DEBUG_POSTFIX variable. Fixes: #25874
* | | | | | | | | Tests: Avoid running VS 16+ tests when using a pre-v140 toolsetBrad King2024-05-132-2/+4
| |_|_|_|/ / / / |/| | | | | | |
* | | | | | | | Merge topic 'test-race-aix'Brad King2024-05-131-0/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b3245f33ef Tests/RunCMake/install: Avoid intermittent failures on AIX Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9507
| * | | | | | | | Tests/RunCMake/install: Avoid intermittent failures on AIXBrad King2024-05-101-0/+2
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 3a739d4dcb (EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate, 2024-03-12, v3.29.0-rc4~6^2) a case has intermittently failed due to CMake rerunning during the case's build step and printing the feature gate warning to stderr. Redirect all build output to stdout as we do in similar cases elsewhere. Although we don't expect CMake to re-run in this case, somehow an AIX host's filesystem is occasionally recording high-resolution timestamps out of order among files saved in quick succession.
* | | | | | | | Help: Document TARGET_PROPERTY genex behavior on unset propertyBrad King2024-05-103-0/+8
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add an explicit test for the case. Fixes: #25968
* | | | | | | Merge topic 'remove-vs9-generator'Brad King2024-05-0934-135/+35
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 03c31b0395 Drop Visual Studio 9 2008 generator 88c70dde34 cmGlobalVisualStudioGenerator: Use member 'Version' more directly 0bdcf1cb17 cmLocalVisualStudio7Generator: Make vfproj conditions more explicit acc5ea7390 cmLocalVisualStudio7Generator: Reset per-target members after every target 252702bb35 cmVisualStudioGeneratorOptions: Order version check branches consistently Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9496
| * | | | | | Drop Visual Studio 9 2008 generatorBrad King2024-05-0834-135/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This generator has been deprecated since CMake 3.27. Remove it.
* | | | | | | Tests/RunCMake/file-DOWNLOAD: Add option to control TLS_VERIFY failure URLBrad King2024-05-083-2/+6
|/ / / / / /
* | | | | | Merge topic 'FindBoost-remove'Brad King2024-05-0617-0/+81
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e0355c4ea9 FindBoost: Add policy to remove this module Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Christoph Grüninger <foss@grueninger.de> Merge-request: !9488
| * | | | | | FindBoost: Add policy to remove this moduleBrad King2024-05-0317-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream Boost 1.70 and above provide a proper `BoostConfig.cmake` package configuration file. Packages for all major distros now provide it in at least one LTS release. Add a policy to pretend that the `FindBoost` module does not exist so that projects calling `find_package(Boost)` use the upstream package directly. Closes: #19402
* | | | | | | Merge topic 'cpack-support-all-component-names'Brad King2024-05-065-0/+81
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d7e2fede03 CPack: Add tests for component containing problematic characters a1af593291 CPack: Support arbitrary component name when packaging 9e67ad47a9 cmLocalGenerator: Support arbitrary component name when installing Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9436
| * | | | | | CPack: Add tests for component containing problematic charactersDeniz Bahadir2024-05-015-0/+81
| | | | | | |
* | | | | | | Merge topic 'cxxmodules-no-import-std-reason'Brad King2024-05-037-1/+58
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e89e819398 Tests/CXXModules: add tests for C++26 `import std` support 6dad18f060 cxxmodules: give a reason for unavailability of `import std` Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9486
| * | | | | | | Tests/CXXModules: add tests for C++26 `import std` supportBen Boeckel2024-05-026-0/+52
| | | | | | | |
| * | | | | | | cxxmodules: give a reason for unavailability of `import std`Ben Boeckel2024-05-021-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the `CMAKE_CXX<STANDARD>_COMPILER_IMPORT_STD_NOT_FOUND_MESSAGE` variable is set, include its value in the error message.
* | | | | | | | Merge topic 'cxxmodules-build-export-different-directory'Brad King2024-05-0310-0/+149
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | / | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1fba6d3233 Merge branch 'cxxmodules-build-export-different-directory-3.28' into cxxmodules-build-export-different-directory ec35251510 cmDyndepCollation: look at all `export(TARGETS)` calls Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9485
| * | | | | | Merge branch 'cxxmodules-build-export-different-directory-3.28' into ↵Ben Boeckel2024-05-0210-0/+149
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cxxmodules-build-export-different-directory * cxxmodules-build-export-different-directory-3.28: cmDyndepCollation: look at all `export(TARGETS)` calls
| | * | | | | cmDyndepCollation: look at all `export(TARGETS)` callsBen Boeckel2024-05-0210-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, only `export()` calls in the same directory were noticed. Also add a test that exports in a different directory than the target itself resides in. Fixes: #25813
| * | | | | | Merge topic 'export-name-safe-name' into release-3.29Brad King2024-05-017-0/+298
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 142a85f9c1 cxxmodules: use filesystem-safe export names in filenames 4452d41488 cmGeneratorTarget: add method to get a filesystem-safe export name Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9474
| * | | | | | Merge topic 'exported-modules-with-headers' into release-3.29Brad King2024-04-3010-0/+184
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2041f7c9bf cmGeneratorTarget: add the original target as a COMPILE_ONLY link 051c2110c8 Tests/CXXModules: test exporting modules which include headers Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9469
* | | | | | | Merge topic 'vs-filter-props'Brad King2024-05-022-21/+27
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 56a96d1f1f VS: Add option to import .props in .vcxproj.filters files Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9478
| * | | | | | | VS: Add option to import .props in .vcxproj.filters fileshalx992024-05-012-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds new target property VS_FILTER_PROPS Fixes: #25948