summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Modules: Use new keyword-dispatched try_compile signatureMatthew Woehlke2022-09-144-2/+15
| | | | | | | | | | | Modify most of the modules that ship with CMake to use the new try_compile / try_run signatures added by commit aa9220d3a0 (try_compile: Add keyword-dispatched signature, 2022-09-02). This improves debugging by each invocation using its own directory so that the results of multiple invocations can be retained. This does not cover any invocations which provide an entire project, as that flavor of try_compile has not yet been updated.
* Merge topic 'try_compile-unique-bindir'Brad King2022-09-0772-403/+596
|\ | | | | | | | | | | | | | | | | | | aa9220d3a0 try_compile: Add keyword-dispatched signature d1befe5515 cmSystemTools: Add MakeTempDirectory Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Matthew Woehlke <matthew.woehlke@kitware.com> Merge-request: !7579
| * try_compile: Add keyword-dispatched signatureMatthew Woehlke2022-09-0572-403/+596
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new signature for try_compile (and try_run) which removes the `bindir` argument and requires the SOURCES tag. This will eventually allow us to add other ways of providing sources, but also allows us to change the behavior without breaking compatibility. The old signature uses a special, but non-unique temporary location inside the specified `bindir`, which conventionally is just the project's build directory. The new signature unconditionally uses the a unique temporary directory which is unconditionally within the project's build directory (which is no longer separately specified). This ensures that successive runs do not overwrite previous runs, will simplify debugging, and should also, eventually, allow us to execute multiple trials in parallel.
* | Merge topic 'return-propagate-variables'Brad King2022-09-0714-1/+218
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 838a5fae23 return(): Propagate variables to result scope 8f0e1f2111 cmMakefile: add RaiseScope for list of variables Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !7634
| * | return(): Propagate variables to result scopeMarc Chevrier2022-09-0314-1/+218
| | | | | | | | | | | | Fixes: #23871
* | | Merge topic 'cpack-reuse-cmake-tools'Brad King2022-09-076-11/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c638ab597 CPack: re-use paths of tools discovered by CMakeFindBinUtils Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7635
| * | | CPack: re-use paths of tools discovered by CMakeFindBinUtilsMatteo Martelli2022-09-066-11/+11
| |/ / | | | | | | | | | | | | | | | | | | | | | `CMakeFindBinUtils.cmake` sets `CMAKE_<TOOL>` variables that in cross-compilation environments point to the toolchain specific executables: e.g. `CMAKE_OBJCOPY` might point to `<path_to_toolchain>/arm-poky-linux-gnueabi-objcopy`. Pass this information to CPack.
* | | Merge topic 'test-find-boost'Brad King2022-09-071-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 047c98f4a0 FindPackageTest: Replace VTK with Boost Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7638
| * | | FindPackageTest: Replace VTK with BoostFeRD (Frank Dana)2022-09-031-1/+1
| |/ /
* | | Merge topic 'functiontests-haz-fails'Brad King2022-09-071-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4cae5b8f5c FunctionTest: Fix some test failure checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7640
| * | | FunctionTest: Fix some test failure checksFeRD (Frank Dana)2022-09-031-2/+2
| |/ / | | | | | | | | | Fixes: #23584
* | | Merge topic 'implicit-link-info-msvc'Brad King2022-09-063-3/+92
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 93f2cd5b7c CMakeParseImplicitLinkInfo: Better detection of msvc Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7619
| * | | CMakeParseImplicitLinkInfo: Better detection of msvcRobert Maynard2022-09-023-3/+92
| | | | | | | | | | | | | | | | Use the compiler id information in addition to checking for `cl.exe`.
* | | | Merge topic 'truncation_test'Craig Scott2022-09-0611-11/+18
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | cb55d5e730 RunCMakeTest: fix Truncation test definition Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7632
| * | | RunCMakeTest: fix Truncation test definitionFrank Winklmeier2022-09-0511-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `ctest_test` and `CTestCommandLine` truncation tests had multiple problems: - escape expected result string to avoid regex matching - specify the truncation size - pass the truncation mode correctly into the test definition - use unique test names Issue: #23868
| * | | Merge topic 'Link-MACOSX_BUNDLE' into release-3.24Brad King2022-09-015-0/+44
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f5a441a616 Xcode: Fix erroneous MACOSX_BUNDLE link Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7624
| * \ \ \ Merge topic 'CMAKE_FIND_USE_INSTALL_PREFIX-support-staging-prefix' into ↵Brad King2022-08-317-0/+96
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | release-3.24 0fc10bb19b CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 43d31c5198 cmFindBase: Refactor CMAKE_FIND_USE_INSTALL_PREFIX handling Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7623
* | \ \ \ \ Merge topic 'cmake-presets-package'Brad King2022-09-0225-0/+402
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a8d73085f4 CPack: Add support for presets b699610df4 cmCMakePresetsGraph: Add package presets 215b9148eb CMakePresets.json: Fix formatting of --list-presets=all Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7621
| * | | | | | CPack: Add support for presetsKyle Edwards2022-08-3120-0/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #23117
| * | | | | | CMakePresets.json: Fix formatting of --list-presets=allKyle Edwards2022-08-315-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only print an extra newline after a section if that section was actually printed.
* | | | | | | Merge topic 'E-capabilities-tls'Brad King2022-09-021-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d0bb3286f0 cmake -E capabilities: Tell whether TLS is enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7593
| * | | | | | | cmake -E capabilities: Tell whether TLS is enabledKyle Edwards2022-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #20507
* | | | | | | | Tests: Fix some tests under CFLAGS=-DNDEBUG CXXFLAGS=-DNDEBUGBrad King2022-09-017-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #23888
* | | | | | | | Merge topic 'add_language_levels_for_cxx26'Brad King2022-09-012-0/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f808d8afb9 CMake: Support upcoming C++26 language level Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7601
| * | | | | | | | CMake: Support upcoming C++26 language levelRobert Maynard2022-08-312-0/+4
| | |_|_|_|_|_|/ | |/| | | | | |
* | | | | | | | Merge topic 'compiler-launcher-genexp'Brad King2022-09-011-1/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 36400e9dc1 COMPILER_LAUNCHER: Add support for generator expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7613
| * | | | | | | | COMPILER_LAUNCHER: Add support for generator expressionsThomas Weißschuh2022-08-301-1/+2
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Fixes: #23441
* | | | | | | | Merge topic 'Link-MACOSX_BUNDLE'Brad King2022-09-015-0/+44
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71dae4eb5c Merge branch 'backport-3.24-Link-MACOSX_BUNDLE' into Link-MACOSX_BUNDLE f5a441a616 Xcode: Fix erroneous MACOSX_BUNDLE link Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7624
| * \ \ \ \ \ \ \ Merge branch 'backport-3.24-Link-MACOSX_BUNDLE' into Link-MACOSX_BUNDLEMarc Chevrier2022-08-315-0/+44
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | / / | | | |_|_|_|/ / | | |/| | | | |
| | * | | | | | Xcode: Fix erroneous MACOSX_BUNDLE linkMarc Chevrier2022-08-315-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit a2cfa2da4f (GenEx/LINK_LIBRARY: Add features for framework support on Apple, 2022-02-10, v3.24.0-rc1~661^2) accidentally removed a `GetParentDirectory` call. Restore it. Fixes: #23891
* | | | | | | | Merge topic 'xcode-add-gpu-validation-and-default-configuration'Brad King2022-08-312-0/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 740bee97bd Xcode: Add settings to control a scheme's launch configuration 39456c70e1 Xcode: Add settings to control a scheme's GPU Validation values 4034272ed8 gitignore: Tell Git to ignore the .cache/ directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7581
| * | | | | | | | Xcode: Add settings to control a scheme's GPU Validation valuesPatriceJiang2022-08-302-0/+4
| | | | | | | | |
* | | | | | | | | Merge topic 'FindOpenSP-module'Brad King2022-08-315-0/+89
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e706da5f7e FindOpenSP: Add module to find the OpenSP library 4bcdf1b992 ci: add OpenSP to Debian and Fedora base images Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7470
| * | | | | | | | | FindOpenSP: Add module to find the OpenSP libraryDawid Wróbel2022-08-305-0/+89
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenSP has not seen a release in seventeen years, so is unlikely to ever provide a CMake package configuration file. Add a find module instead.
* | | | | | | | | Merge topic 'CMAKE_FIND_USE_INSTALL_PREFIX-support-staging-prefix'Brad King2022-08-317-0/+96
|\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0fc10bb19b CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 43d31c5198 cmFindBase: Refactor CMAKE_FIND_USE_INSTALL_PREFIX handling Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7623
| * | | | | | | | CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIXRobert Maynard2022-08-307-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #23900
* | | | | | | | | Merge topic 'test-symlinks-with-ccache'Brad King2022-08-311-0/+3
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | / / | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | d3ac4e8246 Tests: Teach RunCMake.SymlinkTrees to tolerate CCACHE_BASEDIR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7622
| * | | | | | | Tests: Teach RunCMake.SymlinkTrees to tolerate CCACHE_BASEDIRBrad King2022-08-301-0/+3
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the test is driven with a `ccache`-wrapped compiler then the `CCACHE_BASEDIR` environment variable might break paths the test checks. Fixes: #23885
* | | | | | | Merge topic 'file-set-source-group'Kyle Edwards2022-08-255-4/+22
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 970052fedd FILE_SET: Fix source group detection bcc3965813 Tests: Fix VS10Project SourceGroupTreeCMakeLists check Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7609
| * | | | | | FILE_SET: Fix source group detectionKyle Edwards2022-08-243-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call MatchChildrenFiles() instead of MatchesFiles() in order to account for files being in subgroups of source groups. Fixes: #23880
| * | | | | | Tests: Fix VS10Project SourceGroupTreeCMakeLists checkKyle Edwards2022-08-242-4/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Fix an `IN LISTS` loop, fix a variable check, and escape backslashes in the regex used to search for source group names.
* | | | | | Merge topic 'fix-presets-test-symlinked-build-dir'Kyle Edwards2022-08-231-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef0cd3dc40 Tests: Fix CMakePresets test in unusual environments Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7598
| * | | | | | Tests: Fix CMakePresets test in unusual environmentsMatthew Woehlke2022-08-191-0/+1
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweak test in RunCMake/CMakePresets/GoodNoSCache.cmake to use the canonical directory for comparison. This avoids an effectively spurious test failure if the overall CMake build directory is a symlink.
* | | | | | Merge topic 'block-management'Brad King2022-08-2350-0/+371
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 44a2f3f332 Add new flow-control commands for variables and policies scopes management 604993248f cmMakefile::VariablePushPop: helper class to manage variable scopes 3d94ee0e03 cmMakefile::RaiseScope: Add support for cmValue argument 553da0685f cmFunctionBlocker: Add handling of close block without parameters. 02c067dee5 cm::enum_set: fix various bugs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: John Ericson <git@johnericson.me> Merge-request: !7575
| * | | | | | Add new flow-control commands for variables and policies scopes managementMarc Chevrier2022-08-2249-0/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add block() and endblock() commands offering the capability to create new scopes for variables and/or policies. Fixes: #20171
| * | | | | | cm::enum_set: fix various bugsMarc Chevrier2022-08-221-0/+9
| |/ / / / /
* | | | | | target_*: Fix cross-directory call backtracesBrad King2022-08-221-47/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Record the call-site backtrace, not the current backtrace of the target's directory. Fixes: #23873
* | | | | | Tests: Add FileAPI case for cross-directory target_* commandsBrad King2022-08-2222-33/+247
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The backtraces for some of the commands incorrectly come from the target's directory instead of the caller's directory. Expect the incorrect backtraces in test results for now. Increase the minimum required version of CMake in the test case to enable policy CMP0079 to support cross-directory calls. Issue: #23873
* | | | | Merge topic 'cuda_mark_toolkit_includes_as_system'Brad King2022-08-194-2/+20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ea659b155d CUDA: Always mark cuda toolkit as system include Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7476
| * | | | | CUDA: Always mark cuda toolkit as system includeRobert Maynard2022-08-184-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #23731