summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Swift: Fix INSTALL_NAME_DIR under CMP0157 NEW behaviorEvan Wilde2024-08-014-3/+38
| | | | | | | | | | Setting `CMAKE_INSTALL_NAME_DIR` or the `INSTALL_NAME_DIR` on Swift targets had no effect when CMP0157 was set to `NEW`. This was a result of missing the `<TARGET_INSTALLNAME_DIR>` before the `<TARGET_SONAME>`. Fix that and add a test to verify that the install name directory is included in the install name. Fixes: #26175
* Merge topic 'backport-test-curl-output' into release-3.29Brad King2024-07-291-1/+1
|\ | | | | | | | | | | | | 13fb20f4d3 Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9690
| * Tests/RunCMake/file-DOWNLOAD: Update bad host name message for curl 8.9Brad King2024-07-291-1/+1
| |
* | Tests/RunCMake/execute_process: Check STARTUPINFOW reserved membersBrad King2024-05-244-0/+34
| | | | | | | | | | | | | | | | Verify that `execute_process` launches processes on Windows such that `GetStartupInfoW` in the child does not populate `STARTUPINFOW` members reserved for the MSVC C run-time. Issue: #25996
* | Merge topic 'cmp0037-message' into release-3.29Brad 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
* | \ \ 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
| * | | cxxmodules: use filesystem-safe export names in filenamesBen Boeckel2024-04-307-0/+298
| |/ / | | | | | | | | | | | | | | | Also add tests. Fixes: #25828
* | | 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
| * | Tests/CXXModules: test exporting modules which include headersBen Boeckel2024-04-2710-0/+184
| |/ | | | | | | | | Test that headers that are part of the same target are available to modules in the target itself.
* | generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIRCraig Scott2024-04-193-0/+60
| | | | | | | | Issue: #25827
* | Tests/RunCMake/CMakePackage: Define variable closer to where it is usedBrad King2024-04-151-3/+4
| |
* | CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variableBrad King2024-04-115-102/+0
| | | | | | | | | | | | | | | | | | | | | | Revert commit 6ddf8712cd (CMakePackageConfigHelpers: Use unique variable name for pkg prefix, 2024-03-30, v3.29.1~8^2). It regressed existing projects that rely on the undocumented `PACKAGE_PREFIX_DIR` variable in package configuration files generated by `CMakePackageConfigHelpers`. Fixes: #25873 Fixes: #25885 Issue: #25827
* | Fix regression on reconfigure with unnormalized -DCMAKE_<LANG>_COMPILER=Brad King2024-04-103-0/+15
| | | | | | | | | | | | | | | | | | | | Since commit 3f2a5971c0 (Modules: CMAKE_*_COMPILER convert path to cmake path, 2023-12-02, v3.29.0-rc1~292^2) we normalize the path to the compiler. Update our logic that checks whether the compiler has changed to account for path normalization. Fixes: #25883 Issue: #25456
* | Tests/RunCMake/CompilerChange: Simplify test casesBrad King2024-04-107-39/+20
| |
* | Swift: Add CMAKE_LINKER_TYPE supportEvan Wilde2024-04-026-5/+42
| | | | | | | | | | | | Extend commit 96a953b1ed (Add options to specify linker tool, 2023-09-27, v3.29.0-rc1~577^2) with the `CMAKE_Swift_USING_LINKER_*` variables needed to support `CMAKE_LINKER_TYPE` for Swift.
* | ctest: Restore enforcement of RESOURCE_LOCK test propertyBrad King2024-04-012-0/+21
| | | | | | | | | | | | | | | | | | Refactoring in commit 5ff0b4ed57 (cmCTestMultiProcessHandler: Consolidate test readiness checks, 2023-10-20, v3.29.0-rc1~378^2~4) accidentally broke `RESOURCE_LOCK`. Fix it and replace the previous test with one that would have caught this. Fixes: #25843
* | CMakePackageConfigHelpers: Use unique variable name for pkg prefixCraig Scott2024-03-315-0/+102
| | | | | | | | Fixes: #25827
* | try_compile(): Include languages with _ or - when passing linker varsCraig Scott2024-03-224-0/+40
| | | | | | | | Fixes: #25809
* | generate_apple_*_selection_file: Add option to capture errorsBrad King2024-03-1911-0/+75
| | | | | | | | | | | | | | Add an option to capture error messages in a variable instead of terminating with a fatal error. Fixes: #25778
* | generate_apple_architecture_selection_file: Document $(ARCHS_STANDARD) supportBrad King2024-03-194-1/+6
| | | | | | | | | | | | Also add a test case. Fixes: #25780
* | generate_apple_architecture_selection_file: Simplify signatureBrad King2024-03-191-3/+3
| | | | | | | | | | | | | | Allow callers to pass multiple values to list-valued arguments instead of putting the entire list in a single quoted argument. Fixes: #25779
* | Tests/RunCMake/CMakePackage: Fix Apple architecture selection argument orderBrad King2024-03-191-1/+4
| | | | | | | | | | Call `generate_apple_architecture_selection_file` with matching order in `SINGLE_ARCHITECTURES` and `SINGLE_ARCHITECTURE_INCLUDE_FILES`.
* | Tests/RunCMake/CMakePackage: Add architecture i386 for macOS on Xcode < 10Brad King2024-03-191-4/+10
| | | | | | | | Use every architecture each version of Xcode has in `$(ARCHS_STANDARD)`.
* | Merge topic 'Apple-TBD-in-subdirecory' into release-3.29Brad King2024-03-142-3/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | 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-142-3/+14
| | | | | | | | | | | | Fixes: #25765
* | | Merge topic 'LINKER_TYPE-mold-support' into release-3.29Brad King2024-03-148-4/+13
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 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-138-4/+13
| | | | | | | | | | | | Fixes: #25748
* | | Merge topic 'export-find_dependency-calls' into release-3.29Brad King2024-03-1318-0/+49
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1218-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 'backport-3.28-ci-xcode-15.3'Brad King2024-03-123-3/+10
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | 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.
* | | install(EXPORT): Drop REQUIRED from exported find_dependency callsBrad King2024-03-112-5/+5
| |/ |/| | | | | | | | | | | | | | | | | 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-1130-4/+241
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1028-4/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Tests: Convert CTestTestSkipReturnCode to RunCMake.ctest_test caseBrad King2024-03-102-0/+15
| | |
| * | Tests: Convert CTestTestSerialOrder to RunCMake.ctest_test caseBrad King2024-03-102-0/+31
| | |
* | | ctest: Remove unnecessary and ambiguous tests-from-file comment syntaxBrad King2024-03-082-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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-089-0/+29
| | | | | | | | | | | | 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 '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 'cxxmodules-no-export-basedirs-as-include-paths' into release-3.28Brad King2024-02-297-0/+147
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 028f3134e5 cmExportFileGenerator: only export include paths for HEADERS file sets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9295
* | | | ctest: Exit with failure when tests-from-file input is missingBrad King2024-03-0614-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the options added by * commit 022f20f663 (ctest: add command line option to run the tests listed in a given file, 2023-11-29, v3.29.0-rc1~66^2~2) * commit dbacc1d5a8 (ctest: add command line option to exclude tests listed in a given file, 2023-11-30, v3.29.0-rc1~66^2~1) * commit 701029726f (ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILE, 2023-12-03, v3.29.0-rc1~66^2) are given a missing file, fail instead of ignoring it. Fixes: #25740
* | | | Tests: Generalize ctest tests-from-file test casesBrad King2024-03-066-9/+9
| |_|/ |/| |