summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* try_compile: More useful error if insufficient argumentsMatthew Woehlke2022-09-153-3/+3
| | | | | Tweak try_compile and try_run to give a more informative error (rather than "unknown error") when given an insufficient number of arguments.
* Merge topic 'fix-try_compile-tests'Brad King2022-09-153-3/+9
|\ | | | | | | | | | | | | | | 4ecbf1f938 Tests: Fix recently added tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7678
| * Tests: Fix recently added testsMatthew Woehlke2022-09-143-3/+9
| | | | | | | | | | | | Fix the tests added by commit 0c141b03 (try_compile: Record output location instead of reverse computing it, 2022-08-31), which were added as old-and-new-signature tests but only used the old signature.
* | Merge topic 'link-framework-with-multi-config-postfix'Brad King2022-09-151-0/+5
|\ \ | |/ |/| | | | | | | | | fc06450ff4 Apple: Fix regression when linking a framework with postfix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7675
| * Apple: Fix regression when linking a framework with postfixMarc Chevrier2022-09-141-0/+5
| | | | | | | | | | | | | | Fix a regression caused by commit 40178f3c90 (cmGlobalGenerator: Add helper to split framework path, 2022-02-10, v3.24.0-rc1~661^2~1). Fixes: #23961
* | Merge topic 'MsvcDebugInformationFormatAbstraction'Brad King2022-09-1425-0/+275
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | a858466aac MSVC: Add test for debug information format 0e96a20478 MSVC: Add abstraction for debug information format d4c8111da4 Clang/Windows: Clarify name of internal runtime library flags variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7606
| * | MSVC: Add test for debug information formatBrad King2022-09-1411-0/+147
| | | | | | | | | | | | | | | Verify that the format's flags are used to compile, both in the main project and in `try_compile` test projects.
| * | MSVC: Add abstraction for debug information formatGlen Chung2022-09-1414-0/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace our hard-coded default for `/Zi` with a first-class abstraction to select the debug information format an enumeration of logical names. We've long hesitated to do this because the idea of "debug information format" touches on related concepts on several platforms. Avoid that scope creep by simply defining an abstraction that applies only when targeting the MSVC ABI on Windows. Removing the old default flag requires a policy because existing projects may rely on string processing to edit them and choose a runtime library under the old behavior. Add policy CMP0141 to provide compatibility. Fixes: #10189
* | | Merge topic 'modules-use-new-try_compile-signature'Brad King2022-09-144-2/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 2edf0fc6d7 Modules: Use new keyword-dispatched try_compile signature Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7656
| * | | 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.
* | | CMakePresets.json: Fix error message for unsupported package presetsKyle Edwards2022-09-131-1/+1
| | |
* | | Merge topic 'fix-commandline-test-with-symlinks'Brad King2022-09-131-1/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b62e40a64 Tests: Fix RunCMake.CommandLine test in unusual environments Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7660
| * | | Tests: Fix RunCMake.CommandLine test in unusual environmentsMatthew Woehlke2022-09-121-1/+6
| |/ / | | | | | | | | | | | | | | | Modify `Tests/RunCMake/CommandLine/P_working-dir.cmake` to not spuriously fail in environments when the build directory's nominal path is not canonicalized (i.e. `realpath(BINDIR) != BINDIR`).
* | | Merge topic 'try_compile_correctly_compute_exec_name'Brad King2022-09-129-18/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c141b0393 try_compile: Record output location instead of reverse computing it Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7626
| * | | try_compile: Record output location instead of reverse computing itRobert Maynard2022-09-079-18/+28
| |/ / | | | | | | | | | Fixes #23887, #23942, #20163, #18288
* | | Merge topic 'fetchcontent-redirect-version-exact'Brad King2022-09-121-0/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 48b380c961 FetchContent: Ignore EXACT for redirected find_package() calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7665
| * | FetchContent: Ignore EXACT for redirected find_package() callsCraig Scott2022-09-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When FetchContent_MakeAvailable() populates a dependency for which find_package() integration is enabled, all future calls to find_package() MUST succeed using the contents of the redirection directory. The generated config version file was not handling calls where the EXACT keyword was given, resulting in such calls rejecting the redirection directory's contents and continuing its search. It is not allowed to do that. Fix the generated file to also set PACKAGE_VERSION_EXACT to true so that calls with EXACT now accept it, as was originally intended. Fixes: #23950
| * | Merge topic 'truncation_invalid' into release-3.24Brad King2022-09-097-0/+10
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd30d20bc3 Tests: Add cases covering bad ctest output truncation types dbf840392d ctest: print error for invalid CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7596
* | \ \ Merge topic 'fphsa-error-message-empty-version-var'Brad King2022-09-094-1/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f50f135ae FPHSA: Improve error message when VERSION_VAR is empty or has been unset() Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7527
| * | | | FPHSA: Improve error message when VERSION_VAR is empty or has been unset()Andrea Pappacoda2022-09-074-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, when `VERSION_VAR` is set but empty, FPHSA emitted a confusing error message, saying that the package was found but of an unsuitable version "". Fix the error message to state that the package was not found. Fixes: #23807
* | | | | Merge topic 'truncation_invalid'Brad King2022-09-097-0/+10
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd30d20bc3 Tests: Add cases covering bad ctest output truncation types dbf840392d ctest: print error for invalid CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7596
| * | | | Tests: Add cases covering bad ctest output truncation typesBrad King2022-09-077-0/+10
| | | | | | | | | | | | | | | | | | | | Issue: #23869
* | | | | Merge topic 'check-library-properties-fix-performances-regression'Brad King2022-09-092-5/+5
|\ \ \ \ \ | | |_|/ / | |/| | / | |_|_|/ |/| | | | | | | | | | | | | | | 985b4c82a6 Check link libraries properties: fix performances regression a47eef32a3 renames method FinalizeTargetCompileInfo() in FinalizeTargetConfiguration(). Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7651
| * | | Check link libraries properties: fix performances regressionMarc Chevrier2022-09-072-5/+5
| |/ / | | | | | | | | | Fixes: #23939
* | | 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