summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Tests/CXXModules: add tests for modules with include requirementsBen Boeckel2023-09-2623-0/+292
| | | | |
| * | | | Tests/CXXModules: relax line number matching in stderrBen Boeckel2023-09-2645-77/+77
| | | | |
* | | | | Merge topic 'misc-cxxmodule-fixes'Brad King2023-09-2711-47/+102
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b632f32fa Tests/CXXModules: forward the default build type 5ab6b09691 Tests/CXXModules: fix multi-config and MSVC details 11b62ef118 Tests/CXXModules: add missing `bmi-only` and compiler id fields 5d9631fbdd Tests/CXXModules: fix key set mismatch error messages 86e7fb72cb Tests/CXXModules: use a less generic name for the config 6b940dc590 Tests/CXXModules: replace the object extension as well 1c9f83c8ec Tests/CXXModules: fix error detection propagation 7a4c02cb38 cmGlobalGenerator: factor out messaging for CMP0037 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !8834
| * | | | | Tests/CXXModules: forward the default build typeBen Boeckel2023-09-264-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows defaults the build type to `Debug` while other platforms have an empty string.
| * | | | | Tests/CXXModules: fix multi-config and MSVC detailsBen Boeckel2023-09-256-25/+25
| | | | | |
| * | | | | Tests/CXXModules: add missing `bmi-only` and compiler id fieldsBen Boeckel2023-09-256-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | Missed because the test script did not properly bubble up error reports.
| * | | | | Tests/CXXModules: fix key set mismatch error messagesBen Boeckel2023-09-251-2/+2
| | | | | |
| * | | | | Tests/CXXModules: use a less generic name for the configBen Boeckel2023-09-254-18/+18
| | | | | |
| * | | | | Tests/CXXModules: replace the object extension as wellBen Boeckel2023-09-252-0/+2
| | | | | |
| * | | | | Tests/CXXModules: fix error detection propagationBen Boeckel2023-09-254-2/+15
| | | | | |
* | | | | | Merge topic 'autogen-timestamp-per-config'Brad King2023-09-277-75/+198
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bac468ddfd AutoGen: Fix regression in timestamps on multi-config generators c3f0825d3c Tests/RunCMake/Autogen: Factor out test setup 9654835b4f Tests/RunCMake/Autogen: Add expect_n_times() function Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8840
| * | | | | | AutoGen: Fix regression in timestamps on multi-config generatorsOrkun Tokdemir2023-09-261-42/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit fddd0f0443 (Autogen: AUTO*_EXECUTABLE: add support for per-config values, 2023-06-14) we do not correctly generate outputs for one configuration after another configuration has been built. Fix this: - Revert some config based stuff for `Xcode` due to the `$<CONFIG>` genex usage limitation in source files with `Xcode`. - For multi-config generators use a per-config `timestamp_$<CONFIG>` file instead of one `timestamp` file. Fixes: #25261
| * | | | | | Tests/RunCMake/Autogen: Factor out test setupOrkun Tokdemir2023-09-266-33/+39
| | | | | | |
| * | | | | | Tests/RunCMake/Autogen: Add expect_n_times() functionOrkun Tokdemir2023-09-261-0/+10
| | | | | | |
* | | | | | | Tests: Fix RunCMake.XcFramework in symlinked paths with Xcode 15Brad King2023-09-261-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `xcodebuild -create-xcframework` tool in Xcode 15.0 fails to compute relative paths if the input paths have symlinks.
* | | | | | | Tests: Fix failures on macOS arm64 due to Xcode 15 skipping ad-hoc signatureBrad King2023-09-262-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update commit 1c15eb39d2 (Tests: Suppress failures on macOS arm64 due to separate Xcode signing phase, 2021-02-22, v3.20.0-rc2~11^2) for Xcode 15, which ignores our `-Xlinker -adhoc_codesign` flag, prioritizes its own `-Xlinker -no_adhoc_codesign` flag, and does not add an ad-hoc signature at link time. Issue: #21845
* | | | | | | Tests: Disable visionOS cases because Xcode 15.0 excludes supportBrad King2023-09-262-37/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 25977e177b (apple: add preliminary visionOS support, 2023-06-22) we added visionOS based on a Xcode 15 beta version, but the Xcode 15.0 final release did not include it. Disable the test cases until we can improve the condition to detect availability. Issue: #25266
* | | | | | | Tests: Clarify RunCMake.XcFramework conditions testing Xcode versionBrad King2023-09-262-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 7050ac56a1 (macOS: Add support for linking against .xcframework folders, 2023-05-17) used conditions based on the AppleClang compiler version, but we actually want to check the Xcode version.
* | | | | | | Tests: Teach RunCMake to ignore Xcode DVTAssertions warningsBrad King2023-09-261-0/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some Xcode versions, `xcodebuild` may warn: ... xcodebuild[...] DVTAssertions: Warning ... Teach RunCMake to drop such incidental lines before matching against expected output.
* | | | | | Merge topic 'genexp-no-eval'Brad King2023-09-2615-0/+65
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 634079b86d cmGeneratorExpressionEvaluator: Short-circuit boolean operators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !8791
| * | | | | | cmGeneratorExpressionEvaluator: Short-circuit boolean operatorsMartin Duffy2023-09-1315-0/+65
| | | | | | |
* | | | | | | Merge topic 'lint-genex-empty'Brad King2023-09-262-0/+7
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80df7b1745 Linting: Fix empty evaluated genex Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8833
| * | | | | | Linting: Fix empty evaluated genexOrkun Tokdemir2023-09-252-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update logic added by commit 099934e313 (Add generator expression support to static code analysis hooks, 2023-03-24, v3.27.0-rc1~261^2), and preserved by commit 993dde925f (TargetGenerator: Factor out generation of code check rules, 2023-05-12, v3.27.0-rc1~84^2~2), to handle a generator expression that evaluates to the empty string. If `<LANG>_CPPCHECK`, `<LANG>_CPPLINT`, `<LANG>_CLANG_TIDY`, or `<LANG>_INCLUDE_WHAT_YOU_USE` are empty after evaluating generator expressions, do not run their lints. Fixes: #25265
* | | | | | | Merge topic 'orangec-compiler'Brad King2023-09-2632-44/+63
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8fa4f1ad7 ci: Add OrangeC 6.73.1 nightly CI job 531b4fe643 OrangeC: Add support for OrangeC compiler 10f435a58f Tests: Simplify nested if conditions in Complex tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Victor <lostfreeman@gmail.com> Merge-request: !8592
| * | | | | | | OrangeC: Add support for OrangeC compilerDavid Lindauer2023-09-2532-44/+63
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add compiler information modules. Update the test suite. Fixes: #25032 Co-authored-by: Brad King <brad.king@kitware.com>
* | | | | | | Merge topic 'FetchContent-EXCLUDE_FROM_ALL'Craig Scott2023-09-264-0/+25
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f77807f1c FetchContent: Add support for EXCLUDE_FROM_ALL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8822
| * | | | | | FetchContent: Add support for EXCLUDE_FROM_ALLSteven Stallion2023-09-254-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #20167
* | | | | | | Merge topic 'CrayClang-compiler'Brad King2023-09-251-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80838316a8 CrayClang: Add support for this compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8781
| * | | | | | | CrayClang: Add support for this compilerRyan Krattiger2023-09-221-1/+1
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `CrayClang` compiler ID for newer Cray compilers. Fixes: #25102
* | | | | | | Tests: Update tests to run in symlinked treeKyle Edwards2023-09-225-19/+29
|/ / / / / /
* | | | | | Merge topic 'cuda-factor-out-lang'Brad King2023-09-222-2/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b32ea7cff0 CUDA: Factor out helper to generate CUDA architecture flags b3a1f17567 CUDA: Factor out helper to validate CMAKE_CUDA_ARCHITECTURES 8617c28221 CUDA: Factor out helper for detecting native CUDA architectures 0db0fe7958 CUDA: Factor out helper to compute all CUDA architectures c16f1e2b93 CUDA: Factor out helper to find CUDA Toolkit for compiler a6841a967b CUDA: Factor out helper to filter implicit link libraries deff0e638d CUDA: Factor out helper to parse NVCC implicit compiler and linker flags e1b2a5062f CUDA: Factor out some NVCC compiler information ... Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !8816
| * | | | | | CUDA: Factor out helper to validate CMAKE_CUDA_ARCHITECTURESBrad King2023-09-212-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare to use it for other languages.
* | | | | | | Merge topic 'macOS-system-framework-link'Brad King2023-09-224-13/+20
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3bdf95f942 macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linked Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8825
| * | | | | | | macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linkedMarc Chevrier2023-09-214-13/+20
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Fixes: #25263
* | | | | | | Merge topic 'fileset-private-dep'Brad King2023-09-2120-0/+125
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec2ba29ac5 Ninja: Allow compilation before generation of dependencies' private sources Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8420
| * | | | | | Ninja: Allow compilation before generation of dependencies' private sourcesMartin Duffy2023-09-2020-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires knowing when a generated header is public, which we can model using file sets. Add policy CMP0154 to treat generated sources as private by default in targets with file sets. Generated public headers can be specified in public file sets. Fixes: #24959 Issue: #15555
* | | | | | | Merge topic 'FindPkgConfig-override'Brad King2023-09-202-0/+20
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e0d00b9218 FindPkgConfig: Allow to override variables when calling pkg_get_variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8808
| * | | | | | FindPkgConfig: Allow to override variables when calling pkg_get_variableCorentin Noël2023-09-192-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is specifically useful when building applications within containers as we sometimes need to redefine the prefix used in a variable.
* | | | | | | cmake: Clarify error if -P script does not existscivision2023-09-185-5/+6
|/ / / / / /
* | | | | | find_(library|file|path): Drop PATH-derived search prefixesBrad King2023-09-1427-180/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit ffc06c1239 (Teach find_(library|file|path) to get prefixes from PATH, 2015-02-18, v3.3.0-rc1~430^2) we search in `<prefix>/include` and `<prefix>/lib` directories for prefixes with `bin` directories in the `PATH` environment variable. The motivation was to search the installation prefixes of MSYS and MinGW development environments automatically. This behavior can search undesired prefixes that happen to be in the `PATH` for unrelated reasons. It was reverted for non-Windows hosts within a year by commit b30b32a493 (Drop find_(library|file|path) prefixes from PATH on non-Windows, 2016-05-09, v3.6.0-rc1~82^2) but was kept on Windows hosts to support its motivating use case. However, similar problems have since been observed on Windows. For example, commit 955d6245c1 (MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention", 2022-11-28, v3.25.1~6^2) was primarily due to undesired discovery of libraries in `PATH`-derived prefixes. Since commit 5e5132e1b1 (MinGW: Search for packages in standard MSYSTEM environment prefixes, 2023-09-11) we search MSYS and MinGW environments' prefixes explicitly, so `PATH`-derived prefixes are no longer needed for the original motivating use case. Fixes: #24216
* | | | | Merge topic 'cxxmodules-non-compiled-source'Brad King2023-09-146-1/+37
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24a9b00f83 Merge branch 'cxxmodules-non-compiled-source-release' into cxxmodules-non-compiled-source 458e3974a8 cxxmodules: detect and message about non-compiled sources Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8773
| * \ \ \ \ Merge branch 'cxxmodules-non-compiled-source-release' into ↵Ben Boeckel2023-09-126-1/+37
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cxxmodules-non-compiled-source * cxxmodules-non-compiled-source-release: cxxmodules: detect and message about non-compiled sources
| | * | | | cxxmodules: detect and message about non-compiled sourcesBen Boeckel2023-09-126-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously an internal error was raised which ended up causing an internal exception to be thrown. This is a typo situation that should fall into an explicit error. Fixes: #25207
* | | | | | Merge topic 'autogen-exe-per-config'Brad King2023-09-1419-22/+424
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e454314daa NinjaMultiConfig: Update tests for the new dependency change fddd0f0443 Autogen: AUTO*_EXECUTABLE: add support for per-config values 10b09647f2 RunCMake: Add RunCMake_TEST_EXPECT_RESULT cac2e029f0 cmQtAutoGenInitializer: Define CrossConfig variable d4889361f0 cmQtAutoGenInitializer: Reduce string copies 0bf49d5579 cmQtAutoGenInitializer: Remove no-op call 94c4c1cb28 cmQtAutoGenInitializer: Improve Const-Correctness 6d54c36859 Autogen: Fix typo ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8564
| * | | | | | NinjaMultiConfig: Update tests for the new dependency changeOrkun Tokdemir2023-09-133-22/+40
| | | | | | |
| * | | | | | Autogen: AUTO*_EXECUTABLE: add support for per-config valuesOrkun Tokdemir2023-09-1315-0/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Per-config values were added to `AUTO*_EXECUTABLE`. * Dependency order was refactored for `cmake_autogen` and `cmake_autorcc` to avoid unnecessary rebuilds. * A new parameter was added for `cmake_autogen` and `cmake_autorcc` to specify the config name of the `auto*_executable` to be used. * The timestamp target was split into three targets for per-config to avoid redundant `mocs_compilation` builds. * Per-config `DEP_FILE_RULE_NAME` values were added to `AutogenInfo.json` for `CMAKE_CROSS_CONFIG` usage. * Some functions were refactored to avoid code duplication. Fixes: #20074
| * | | | | | RunCMake: Add RunCMake_TEST_EXPECT_RESULTOrkun Tokdemir2023-09-131-0/+2
| | | | | | |
* | | | | | | Merge topic 'mingw-search-prefixes'Brad King2023-09-1417-4/+44
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5e5132e1b1 MinGW: Search for packages in standard MSYSTEM environment prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8796
| * | | | | | MinGW: Search for packages in standard MSYSTEM environment prefixesBrad King2023-09-1317-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSYS2 and similar MinGW/MSYS distributions define development environments with a `MSYSTEM` environment variable. Each such environment has a documented installation prefix for its packages, often provided by a `MSYSTEM_PREFIX` environment variable. Since commit 84a25fc263 (cmake_host_system_information: Add MSYSTEM_PREFIX query, 2023-09-08) we can look up this prefix. Add `$MSYSTEM_PREFIX/local` and `$MSYSTEM_PREFIX` to our system search prefixes when targeting MinGW under `MSYSTEM` environments. This is their equivalent to `/usr/local` and `/usr`, which we search by default on UNIX systems. Issue: #24216
* | | | | | | Merge topic 'orkun_21677_16_06_2023'Brad King2023-09-1316-52/+123
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09b650d000 Autogen: Move QtAutoMocDeps tests to RunCMake/Autogen ebc9e448b3 Autogen: Add depfile support for Makefiles e5358b9d8d RunCMake: Add RunCMake_TEST_NOT_EXPECT variables Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8570