summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs-version-var'Brad King2022-12-082-0/+3
|\ | | | | | | | | | | | | | | 5ce0f03cce VS: Add a variable to report the Visual Studio version build number 55529c5e93 Help: Factor out VS Build Number components document fragment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8000
| * VS: Add a variable to report the Visual Studio version build numberBrad King2022-12-072-0/+3
| | | | | | | | | | | | | | | | | | | | VS 2017 and above come with a Visual Studio Installer tool that tracks four-component Visual Studio version numbers. We already detect the VS version number because it is needed to make some generation decisions. Provide the number to projects in a `CMAKE_VS_VERSION_BUILD_NUMBER` variable so they can use it similarly. Fixes: #24230
* | Tests: Teach RunCMake.FindBoost to avoid finding an external BoostBrad King2022-12-071-0/+4
|/ | | | | The `ConfigModeNotFound` case does not expect to find a Boost. Avoid accidentally finding one on the host.
* Merge topic 'vs-dotnet-sdk-xaml-resx'Brad King2022-12-079-0/+351
|\ | | | | | | | | | | | | c445dd2797 VS: Add Xaml and Resx files to .Net SDK style projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7991
| * VS: Add Xaml and Resx files to .Net SDK style projectsQuentin Berthet2022-12-069-0/+351
| | | | | | | | | | | | Improve parity with classic MSBuild projects. Fixes: #23415
* | Merge topic 'clang-tidy-export-fixes-dir'Brad King2022-12-0712-0/+191
|\ \ | | | | | | | | | | | | | | | | | | | | | 232467eb1c clang-tidy: add <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR property Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7982
| * | clang-tidy: add <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR propertyKyle Edwards2022-12-0612-0/+191
| |/ | | | | | | Fixes: #21362
* | Merge topic 'cmstrcat-any-rvalue-arg'Brad King2022-12-071-4/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 1cca051470 cmStrCat(): allow any argument to be an rvalue string Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !7993
| * | cmStrCat(): allow any argument to be an rvalue stringKyle Edwards2022-12-061-4/+14
| | | | | | | | | | | | | | | This will allow us to re-use any rvalue allocation that is available, not just from the first argument.
* | | cmake: Stop parsing after `--` when detecting script modeRobert Maynard2022-12-062-0/+11
|/ / | | | | | | Fixes #24220
* | Merge topic 'cxx-module-map-clang'Brad King2022-12-061-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2c558cfd1b gitlab-ci: add CI jobs for Clang with C++20 modules abd42e9cfc ci: add a Docker container for clang support of C++20 modules 51093f3002 Clang-FindBinUtils: also find `clang-scan-deps` 0b333de923 ci: add C++ module rules file for Clang 21b9fb1e8c cmCxxModuleMapper: support the `clang` module map format 9c66224668 cmNinjaTargetGenerator: skip setting `depfile` for `none` scantypes 9123a0991f cmNinjaTargetGenerator: use `.clear()` to empty out some strings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !7978
| * | cmCxxModuleMapper: support the `clang` module map formatBen Boeckel2022-12-021-1/+1
| | |
* | | Tests: Enable RunCMake.file-GET_RUNTIME_DEPENDENCIES linux cases on XLBrad King2022-12-022-2/+5
| |/ |/| | | | | | | | | | | These were excluded with the XL and XLClang compilers because one such compiler in nightly testing hard-codes `--enable-new-dtags`. Add a way to disable the cases via local configuration instead so that we can run them on the rest of the XL compilers.
* | Merge topic 'file-GET_RUNTIME_DEPENDENCIES-transitive-rpath'Brad King2022-12-026-3/+84
|\ \ | | | | | | | | | | | | | | | | | | | | | 136622a2b2 file(GET_RUNTIME_DEPENDENCIES): propagate transitive parent's rpath 4aa3149c67 Tests: Simplify RunCMake.file-GET_RUNTIME_DEPENDENCIES case cleaning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7968
| * | file(GET_RUNTIME_DEPENDENCIES): propagate transitive parent's rpathAlex Lapenkou2022-12-026-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes incorrect runtime dependency resolution when the dependency is located in rpaths of a transitive parent. Instead of supplying only the rpaths of the immediate parent, it combines the rpaths of all transitive parents and passes them down. Fixes: #24172
| * | Tests: Simplify RunCMake.file-GET_RUNTIME_DEPENDENCIES case cleaningBrad King2022-11-291-3/+1
| | |
* | | cmExperimental: recycle C++20 module support UUIDBen Boeckel2022-12-018-8/+8
| | | | | | | | | | | | Visual Studio support warrants a new ID.
* | | Tests/RunCMake/CXXModules: add support for Visual StudioBen Boeckel2022-12-012-0/+8
| | |
* | | Tests/RunCMake/CXXModules: split out collation-requiring testsBen Boeckel2022-12-011-1/+5
| | | | | | | | | | | | | | | Visual Studio does not currently have a place to insert the logic required to implement this test, so skip it if possible.
* | | Tests/RunCMake/CXXModules: factor out generator support detectionBen Boeckel2022-12-011-3/+8
| | | | | | | | | | | | This keeps the condition to a readable limit.
* | | Tests/RunCMake/CXXModules: update `NoDyndepSupport` for VS2019 and olderBen Boeckel2022-12-011-0/+5
| | |
* | | Tests/RunCMake/CXXModules: catch VS circular error messageBen Boeckel2022-12-011-1/+1
| | |
* | | Tests/RunCMake/CXXModules: mask scanning checks without controlBen Boeckel2022-12-017-21/+38
| |/ |/| | | | | | | In Visual Studio, there is no mechanism to tell scanning apart from non-scanning, so skip the sanity checks.
* | Merge topic 'find_cudatoolkit_avoid_nvhpc_symlinks'Brad King2022-12-012-0/+11
|\ \ | | | | | | | | | | | | | | | | | | 9d012b1f69 FindCUDAToolkit: Ensure that paths provided have no symlinks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7974
| * | FindCUDAToolkit: Ensure that paths provided have no symlinksRobert Maynard2022-11-302-0/+11
| | | | | | | | | | | | Fixes: #24188
* | | Merge topic 'cmstrcat-move-first-arg'Brad King2022-12-011-0/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | beba50bd61 cmStrCat(): optimize when first argument is an rvalue string d6f2a7ab4b cmStringCommand: remove use of cmCatViews() Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7969
| * | | cmStrCat(): optimize when first argument is an rvalue stringKyle Edwards2022-11-301-0/+14
| |/ /
* | | Merge topic 'fortran-regression'Brad King2022-11-303-0/+22
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a67da2ef66 Tests/FortranModules: add case for modules after "end interface X" 88fb1980c3 Fortran: Restore support for parsing "end interface X" Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7966
| * | | Tests/FortranModules: add case for modules after "end interface X"Ben Boeckel2022-11-303-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When there is an `end interface X` in a file, subsequent modules should not be considered part of interface X. Issue: #24203
| * | | Merge topic 'try_compile-copy-config' into release-3.25Brad King2022-11-232-0/+9
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80fc564dd7 try_compile: Restore COPY_FILE with CMAKE_TRY_COMPILE_CONFIGURATION Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !7948
* | | | | FindPython: add support for Stable ABIMarc Chevrier2022-11-297-2/+138
| |_|/ / |/| | | | | | | | | | | Fixes: #24141
* | | | Merge topic 'ci-nvhpc'Brad King2022-11-291-4/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 16a5c36795 gitlab-ci: add nightly job testing NVHPC with Ninja on Linux 9474d02386 Tests: Clarify CudaOnly.SeparateCompilationPTX output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7946
| * | | | Tests: Clarify CudaOnly.SeparateCompilationPTX outputBrad King2022-11-231-4/+5
| | | | |
* | | | | Merge topic 'cuda_tests_support_linux_no_static_libs'Brad King2022-11-2920-69/+212
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 54d8044084 Tests: Don't presume that Linux CUDA Toolkits provide static libs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7949
| * | | | | Tests: Don't presume that Linux CUDA Toolkits provide static libsRobert Maynard2022-11-2320-69/+212
| | | | | |
* | | | | | cmTargetPropCommandBase: Restore ArgumentFlags enum value bool logicCraig Scott2022-11-274-0/+9
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The values of the cmTargetPropCommandBase::ArgumentFlags enum are combined in boolean OR and AND operations in various places. That used to be valid, but some values were added over time which did not preserve support for such boolean logic. Update the enum values such that they are increasing powers of 2 to restore that capability. Fixes: #24199
* | | | | Merge topic 'cxxmodule-module-support-tweaks'Brad King2022-11-232-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c53748cc09 Tests/RunCMake/CXXModules: mark IMPORTED targets as INTERFACE a971fcfde7 cmNinjaNormalTargetGenerator: use `cmStrCat` b7509d6bf8 cmNinjaNormalTargetGenerator: fix grammar in verbose comment 0015cb95de cmGlobalNinjaGenerator: fix comment typo Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7943
| * | | | | Tests/RunCMake/CXXModules: mark IMPORTED targets as INTERFACEBen Boeckel2022-11-212-2/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Now that `Ninja` generators will know to generate rules for `IMPORTED` targets, mark these as `INTERFACE` to avoid requirements of actual artifacts.
* | | | | Merge topic 'try_compile-copy-config'Brad King2022-11-232-0/+9
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80fc564dd7 try_compile: Restore COPY_FILE with CMAKE_TRY_COMPILE_CONFIGURATION Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !7948
| * | | | try_compile: Restore COPY_FILE with CMAKE_TRY_COMPILE_CONFIGURATIONBrad King2022-11-222-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 0c141b0393 (try_compile: Record output location instead of reverse computing it, 2022-08-31, v3.25.0-rc1~154^2) we always look for the "Debug" configuration's output binary from the test project. Restore looking for the `CMAKE_TRY_COMPILE_CONFIGURATION`. Fixes: #24180
* | | | | Merge topic 'XCode-XCODE_LINK_BUILD_PHASE_MODE-and-LINK_LIBRARY-genex'Brad King2022-11-234-8/+74
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | 61075d2d7b XCode: ensure LINK_LIBRARY genex is usable with XCODE_LINK_BUILD_PHASE_MODE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7947
| * | | | XCode: ensure LINK_LIBRARY genex is usable with XCODE_LINK_BUILD_PHASE_MODEMarc Chevrier2022-11-224-8/+74
| |/ / / | | | | | | | | | | | | Fixes: #24176
| * | | Merge topic 'test-FindBoost-python-versions' into release-3.25Brad King2022-11-171-2/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6b1f933cb8 Tests: Update FindBoost.TestPython for Python 3.11 and 3.12 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7929
* | \ \ \ Merge topic 'find_dependency-dedup'Brad King2022-11-228-0/+31
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb9a3d0c7d find_dependency: Avoid repeating identical dependency searches 5fbda0f572 find_dependency: Unset temporary variables before returning 591b75ee17 Tests: Add case covering transitive find_dependency calls Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7936
| * | | | | find_dependency: Avoid repeating identical dependency searchesBrad King2022-11-181-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 37da6af17d (find_dependency: Always search dependencies, 2019-03-29, v3.15.0-rc1~301^2) we search for a package every time it is encountered in the transitive dependency graph traversal, even if it has been found before. This was done in case a new visit to a given package requests different components than a previous visit. However, it also causes a lot of repeat processing that is unnecessary in the common case that all calls share the same set of components (often none). Restore the logic to avoid repeating the search for an already-found package. Handle differences in components by de-duplicating based on the complete `find_package` call arguments. Fixes: #23685
| * | | | | Tests: Add case covering transitive find_dependency callsBrad King2022-11-188-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | Issue: #23685
* | | | | | Merge topic 'custom-command-comment-genex'Brad King2022-11-226-0/+35
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 26d813092b add_custom_{command,target}: add genex support for COMMENT 60a5a39022 cmCustomCommandGenerator: refactor GetComment to return std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7887
| * | | | | add_custom_{command,target}: add genex support for COMMENTPeter Würth2022-11-196-0/+35
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Evaluate and expand generator expressions in the `COMMENT` argument of the `add_custom_command()` and `add_custom_target()` commands. This allows to include generator expressions, e.g. a targets location $<TARGET_...> or the current configuration $<CONFIG>, in the build-time messages. Fixes #22507
* | | | | Merge topic 'xcode-ios-extensionkit'Brad King2022-11-217-0/+72
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b99c386122 Xcode: Allow bundling extensionkit extensions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7900
| * | | | | Xcode: Allow bundling extensionkit extensionsRussell Greene2022-11-187-0/+72
| |/ / / / | | | | | | | | | | | | | | | Fixes: #24150