summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge topic 'ninja-swiftmodule-no-exe'Brad King2022-11-184-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 38c8807c5a Ninja: Avoid re-linking a Swift executable on every build Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7901
| * | | | Ninja: Avoid re-linking a Swift executable on every buildEvan Wilde2022-11-174-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swift doesn't emit swiftmodules for executables, so we shouldn't put it in dependency graph. Ninja sees the "missing" dependency and always tries to rebuild/re-link the target.
* | | | | Merge topic 'build-local-interface-genex'Brad King2022-11-186-0/+72
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 38cbf5e15b Genex: Add $<BUILD_LOCAL_INTERFACE:...> genex 37b5c78688 cmGeneratorExpression: Refactor stripExportInterface() to use enum class Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7919
| * | | | | Genex: Add $<BUILD_LOCAL_INTERFACE:...> genexKyle Edwards2022-11-176-0/+72
| | |/ / / | |/| | | | | | | | | | | | | Fixes: #23209
* | | | | Merge topic 'genex-TARGET_PROPERTY-scope'Brad King2022-11-186-0/+69
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8437141b53 Genex: Fix TARGET_PROPERTY lookup scope in transitive usage requirements Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !7928
| * | | | Genex: Fix TARGET_PROPERTY lookup scope in transitive usage requirementsBrad King2022-11-176-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `$<TARGET_PROPERTY:tgt,prop>` is used in an `INTERFACE_*` target property for usage requirements, it may be evaluated in the context of a dependent target in another directory. Look up the `tgt` name in the directory of the target whose property holds the expression so that imported targets isolated to that directory are visible. Fixes: #24163
* | | | | Merge topic 'file-archive-zstd-compression-level'Brad King2022-11-173-2/+5
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ed519b1cba file(ARCHIVE_CREATE): Allow higher compression level for Zstd Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7924
| * | | | file(ARCHIVE_CREATE): Allow higher compression level for ZstdAmir Masoud Abdol2022-11-163-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the Zstd compression-level to be set between 0-19. I've adjusted some of the tests, and error messages to indicates the selected algorithm, and min/max of its compression-level. Fixes: #24160
* | | | | Merge topic 'test-genex-TARGET_PROPERTY'Brad King2022-11-1659-29/+55
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 11b21ae14a Tests: Move some cases to RunCMake.GenEx-TARGET_PROPERTY a4d0e4ff8f Tests: Prepare RunCMake.GenEx-TARGET_PROPERTY for more independent cases e855ed7fde Tests: Rename RunCMake.TargetPropertyGeneratorExpressions for consistency Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7918
| * | | | | Tests: Move some cases to RunCMake.GenEx-TARGET_PROPERTYBrad King2022-11-1514-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | Move some `TARGET_PROPERTY` cases from `RunCMake.GeneratorExpression`.
| * | | | | Tests: Prepare RunCMake.GenEx-TARGET_PROPERTY for more independent casesBrad King2022-11-1510-13/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing cases all need to enable a language. Move this out of the `CMakeLists.txt` file and into the individual cases to make room for other cases that may not need this.
| * | | | | Tests: Rename RunCMake.TargetPropertyGeneratorExpressions for consistencyBrad King2022-11-1545-4/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | Rename the test to `RunCMake.GenEx-TARGET_PROPERTY` for consistency with the other `RunCMake.GenEx-*` test names.
* | | | | Merge topic 'file-copy-error-path'Brad King2022-11-167-0/+39
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 89b144789d file(COPY_FILE): Report if failure occurred on input or output path 91dd7898ee Merge branch 'upstream-KWSys' into file-copy-error-path a9c659b1b6 KWSys 2022-11-15 (6c92b9b0) Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !7916
| * | | | | file(COPY_FILE): Report if failure occurred on input or output pathBrad King2022-11-157-0/+39
| |/ / / / | | | | | | | | | | | | | | | | | | | | When we know whether a failure was associated with the input or the output path, include this information in the error message.
* | | | | Merge topic 'cmp0141-pch-reuse'Brad King2022-11-162-0/+7
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| | | | | | | | | | 94164ea55e CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is empty Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7914
| * | | CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is emptyBrad King2022-11-152-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under the policy's NEW behavior, `[CMAKE_]MSVC_DEBUG_INFORMATION_FORMAT` may be explicitly set to an empty string to tell CMake not to add any flags for this abstraction. In this case, fall back to checking the language-wide flags as we do in the OLD behavior. This revises commit 183b9a9eca (CMP0141: Fix PCH REUSE_FROM under policy NEW behavior, 2022-10-31, v3.25.0-rc3~4^2). Issue: #24106
* | | | Merge topic 'cmake-E-copy-t-mode'Brad King2022-11-153-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d9069e5b6 cmake -E copy: Add support for -t argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7913
| * | | | cmake -E copy: Add support for -t argumentKyle Edwards2022-11-153-0/+8
| | | | | | | | | | | | | | | | | | | | Fixes: #23543
* | | | | Merge topic 'test-isolate-ctest-env'Brad King2022-11-159-16/+16
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e46a9d79fc Tests: Isolate more RunCMake cases from external ctest environment values 3b6c1c1a3b Tests: Factor out RunCMake ctest environment isolation Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7909
| * | | | | Tests: Isolate more RunCMake cases from external ctest environment valuesBrad King2022-11-143-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a few RunCMake cases that were running `ctest` without isolating it from external environment values that affect its behavior. Fixes: #24153
| * | | | | Tests: Factor out RunCMake ctest environment isolationBrad King2022-11-146-16/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some RunCMake tests unset some environment variables that affect ctest's behavior before running it. Any test using the RunCTest helper needs to do this, so do it in the helper itself. Issue: #24153
* | | | | Merge topic 'better_handling_of_build_args'Brad King2022-11-153-0/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01611f8258 cmake: --build improve detection of no build dir Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7908
| * | | | | cmake: --build improve detection of no build dirRobert Maynard2022-11-143-0/+4
| |/ / / / | | | | | | | | | | | | | | | Fixes #24157
* | | | | Merge topic 'top-level-command-order'Brad King2022-11-1513-8/+20
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 59573bf5b9 project: Warn at top-level if `cmake_minimum_required` wasn't called 23f3dd9f7c RunCMake/project: Ignore exact line number in stderr checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7902
| * | | | project: Warn at top-level if `cmake_minimum_required` wasn't calledfriendlyanon2022-11-116-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The top-level project() call will now issue an AUTHOR_WARNING if it wasn't called after cmake_minimum_required(). Fixes: #24071
| * | | | RunCMake/project: Ignore exact line number in stderr checksfriendlyanon2022-11-117-7/+7
| | | | |
* | | | | Merge topic 'msvc-19.34-cpp-modules'Brad King2022-11-142-1/+3
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | 0e9782b336 msvc: bless MSVC 19.34 support for C++ modules as experimental Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7745
| * | | msvc: bless MSVC 19.34 support for C++ modules as experimentalBen Boeckel2022-11-112-1/+3
| | | | | | | | | | | | | | | | Visual Studio 17.4 now contains official support for what CMake needs.
* | | | Merge topic 'better-file-download-failure-msg'Brad King2022-11-101-1/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8c3cf2716a file(DOWNLOAD EXPECTED_HASH): better error message when download failed Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7888
| * | | | file(DOWNLOAD EXPECTED_HASH): better error message when download failedAurelien Regat-Barrel2022-11-091-1/+0
| | | | |
* | | | | Tests: Fix ARM64 test conditions for non-VS generatorsBrad King2022-11-091-2/+2
| | | | |
* | | | | Merge topic 'file-set-file-api'Brad King2022-11-0954-2/+199
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | b3e9fb67bb file-api: support exporting file set information Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7867
| * | | | file-api: support exporting file set informationBen Boeckel2022-11-0854-2/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes listing the filesets themselves as well as which file set (if any) each source file is associated with. Fixes: #24128
* | | | | Merge topic 'use_folders_on_by_default'Brad King2022-11-087-0/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d3acd22380 USE_FOLDERS: Treat as on by default Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Amir Masoud Abdol <amirmasoudabdol@icloud.com> Merge-request: !7830
| * | | | | USE_FOLDERS: Treat as on by defaultJuan Ramos2022-11-087-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a policy to treat the `USE_FOLDERS` global property as ON by default if it is not set. Fixes: #21695
* | | | | | Merge topic 'test-intel-remarks'Brad King2022-11-081-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b2d030e8fe Tests: Teach RunCMake to ignore Intel -Rdebug-disables-optimization remarks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7366
| * | | | | | Tests: Teach RunCMake to ignore Intel -Rdebug-disables-optimization remarksBrad King2022-10-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Intel compiler may remark: icpx: remark: Note that use of '-g' without any optimization-level option will turn off most compiler optimizations similar to use of '-O0' [-Rdebug-disables-optimization] Teach RunCMake to drop such incidental lines before matching against expected output.
* | | | | | | Merge topic 'googletest-addtests-skipped'Brad King2022-11-083-1/+15
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f54963e60f GoogleTest: Reports skipped test with gtest_add_tests Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7868
| * | | | | | | GoogleTest: Reports skipped test with gtest_add_testsDavidPerretSN2022-11-073-1/+15
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skipped GTests were reported as success when tests where added with gtest_add_tests. This fixes this behaviour. Fixes: #24130
* | | | | | | Merge topic 'block-var-scope'Brad King2022-11-084-2/+34
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | / / | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96ddcbee60 cmState: Clarify name of member tracking the active scope in a directory cb53d9309e block: Fix variable scope protection from modification by subdirectories Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7885
| * | | | | block: Fix variable scope protection from modification by subdirectoriesBrad King2022-11-074-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `cmStateSnapshot::RaiseScope` raises a variable in to a parent directory scope, it uses `GetBuildsystemDirectoryParent` to find the current top-most scope on the directory's stack. Since commit 3f4e5e8c3d (cmState: Return end snapshot for GetBuildsystemDirectoryParent., 2015-09-01, v3.4.0-rc1~100^2~1), that depends on the `DirectoryEnd` field in the directory's state. However, when variable-only scopes were added by commit 6954c8936f (cmState: Add a VariableScope snapshot type., 2015-08-01, v3.4.0-rc1~179^2~1), we neglected to account for the addition of that field by commit 52dbe654de (cmState: Record the end position of each directory., 2015-08-01, v3.4.0-rc1~251^2~1). Prior to commit 44a2f3f332 (Add new flow-control commands for variables and policies scopes management, 2022-08-05, v3.25.0-rc1~257^2) this problem went unnoticed because there was no way to have a variable scope at the top of a directory's stack while processing a subdirectory. Now the `block()/endblock()` commands enable the behavior, so fix tracking of a variable scope as the top-most scope in a directory. Fixes: #24138
* | | | | | Merge topic 'CheckCompilerFlag-Swift'Brad King2022-11-073-1/+27
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2d5403ecaa CheckCompilerFlag: Add Swift Support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7865
| * | | | | CheckCompilerFlag: Add Swift SupportEvan Wilde2022-11-043-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plumb through Swift `check_compiler_flag` support. Add tests to check that valid flags work and invalid flags don't.
* | | | | | Tests: Improve RunCMake.GetPrerequisites sample executable selectionBrad King2022-11-023-3/+5
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get the runtime dependencies of an executable just built by the toolchain with which tests are running. Previously we used the `cmake` binary itself, but that might have been built for a different ABI than the tested binutils support.
* | | | | Merge topic 'compile-commands-output-field'Brad King2022-11-011-2/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 887a8874c3 EXPORT_COMPILE_COMMANDS: add `output` field Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7844
| * | | | | EXPORT_COMPILE_COMMANDS: add `output` fieldBen Boeckel2022-10-281-2/+4
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also write for all configurations from multi-config generators. This field was added in the Clang 5 documentation and not present in the Clang 4 documentation (sometime between Dec 2016 and Mar 2017 according to `web.archive.org`).
* | | | | Merge topic 'test-objc'Brad King2022-11-013-65/+46
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bb2370842f Tests: Simplify RunCMake.try_compile compiler inspection 1abcb094a7 Tests: Fix logic to enable RunCMake.try_compile OBJC/OBJCXX cases b641a80d55 Tests: Factor out a CMake_TEST_OBJC variable for OBJC/OBJCXX test conditions Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7855
| * | | | | Tests: Simplify RunCMake.try_compile compiler inspectionBrad King2022-10-313-48/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detect the compiler id, version, and default standard level in the test's inspection step rather than passing it all in from the host CMake build's results. This avoids repeating details not known to older versions of CMake, and shortens the code.
| * | | | | Tests: Fix logic to enable RunCMake.try_compile OBJC/OBJCXX casesBrad King2022-10-313-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CMake itself does not enable the OBJC/OBJCXX languages, so the `CMAKE_OBJ{C,CXX}_STANDARD_DEFAULT` variables are never defined. Detect them inside the test instead.
| * | | | | Tests: Factor out a CMake_TEST_OBJC variable for OBJC/OBJCXX test conditionsBrad King2022-10-311-6/+6
| | | | | |