summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Update for the Fujitsu compilerChuck Atkins2021-03-319-19/+25
|
* Merge topic 'project-is-top-level'Brad King2021-03-268-0/+50
|\ | | | | | | | | | | | | | | | | 96a7040107 project: Define variables indicating whether project is top level 3706e9c97c Help: Convert project() directory variables to a definition list Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !5938
| * project: Define variables indicating whether project is top levelfriendlyanon2021-03-268-0/+50
| | | | | | | | | | | | | | | | | | Define `PROJECT_IS_TOP_LEVEL` and `<PROJECT-NAME>_IS_TOP_LEVEL`. The latter is a STATIC cache entry just like other `<PROJECT-NAME>_*` variables so that it is globally scoped. Issue: #20310 Fixes: #21961
* | Merge topic 'ninja-multi-long-custom-command'Brad King2021-03-262-0/+21
|\ \ | |/ |/| | | | | | | | | 3b864b2583 Ninja Multi-Config: Include configs in long CC scripts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5941
| * Ninja Multi-Config: Include configs in long CC scriptsKyle Edwards2021-03-252-0/+21
| | | | | | | | Fixes: #21973
* | Merge topic 'vs-custom-flag-table'Brad King2021-03-2310-2/+79
|\ \ | | | | | | | | | | | | | | | | | | | | | 608ef8a6fc VS: Add a mostly-undocumented hook to load custom JSON flag tables 8dd8d63665 Tests: Add RunCMake hook to describe test variants Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5895
| * | VS: Add a mostly-undocumented hook to load custom JSON flag tablesBrad King2021-03-229-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The names and formats of our VS flag tables are internal implementation details. However, some institutions need to maintain support for non-public VS platforms and toolsets. Provide a hook that their projects can use to load custom flag table files. This helps avoid distributing a custom CMake package within such institutions. Document the hook itself, but explicitly specify that the files the hook loads are not considered a stable interface.
| * | Tests: Add RunCMake hook to describe test variantsBrad King2021-03-221-2/+2
| | |
* | | Merge topic 'cmake-presets-condition'Brad King2021-03-2331-2/+529
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8bc5c8961e CMakePresets.json: Add the ability to conditionally disable presets ce6ea7c927 Refactor: Move some common code into separate file ebbd475e54 Refactor: Move cmCMakePresetsFile::ReadJSON into a separate file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5919
| * | | CMakePresets.json: Add the ability to conditionally disable presetsKyle Edwards2021-03-2231-2/+529
| | | |
* | | | Tests: set CMAKE_PREFIX_PATH to the installation prefixBen Boeckel2021-03-191-1/+1
| |/ / |/| | | | | | | | As it is documented to be.
* | | Merge topic 'update_cuda_custom_toolkit_location_folder_structure'Brad King2021-03-195-3/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | c73b847b03 VS: switch to new folder structure while keeping the old one working Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Merge-request: !5911
| * | | VS: switch to new folder structure while keeping the old one workingMarcel Ritzschke2021-03-185-3/+21
| |/ / | | | | | | | | | Fixes: #21170
* | | Merge topic 'FindDevIL-targets'Brad King2021-03-195-0/+58
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 73b27f6ae8 FindDevIL: add imported targets and tests 52d3d1bdc5 FindDevIL: Format documentation of provided variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5891
| * | | FindDevIL: add imported targets and testsAlex2021-03-185-0/+58
| |/ / | | | | | | | | | Fixes: #21900
* | | Merge topic 'fix-CMP0118-NEW'Brad King2021-03-1921-97/+44
|\ \ \ | |/ / |/| / | |/ | | | | | | | | 17eb610a31 Help: Document CMP0118 requirement for boolean values 06feb845aa CMP0118: Fix NEW behavior when looking up target sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5921
| * CMP0118: Fix NEW behavior when looking up target sourcesBrad King2021-03-1821-97/+44
| | | | | | | | | | | | | | | | | | | | Under the CMP0118 NEW behavior, sources generated in one directory should be visible when added to targets in other directories. This was accidentally left out of commit 6624b65b3f (GENERATED prop: Add implementation for policy CMP0118 being set to NEW, 2020-11-09, v3.20.0-rc1~393^2~1). Fixes: #18399
* | Merge topic 'lang_win32_console'Brad King2021-03-181-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 56c759b000 Per-language Win32/Console flags Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5906
| * | Per-language Win32/Console flagsRaul Tambre2021-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Allows using different compilers with different flags for different languages. For example Clang with GNU-like commandline for CXX and MSVC as host compiler for CUDA. Should help with #21914.
* | | Merge topic 'fileapi-codemodel-directory'Brad King2021-03-1820-23/+1019
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 049bf98f63 fileapi: Add installers to codemodel-v2 "directory" object eae2256a52 fileapi: Add backtraceGraph to codemodel-v2 "directory" object a12d7f70b1 fileapi: Add a "directory" object to codemodel-v2 fd30bd93e6 fileapi: Re-organize backtrace infrastructure 415ead8153 cmFileAPICodemodel: Build map from each target to its index f73b6879e9 cmInstallTargetGenerator: Report namelink mode with list of files ea430582f9 cmInstallTargetGenerator: Drop unused GetNamelinkMode method Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5917
| * | | fileapi: Add installers to codemodel-v2 "directory" objectBrad King2021-03-1611-11/+781
| | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
| * | | fileapi: Add backtraceGraph to codemodel-v2 "directory" objectBrad King2021-03-161-1/+3
| | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
| * | | fileapi: Add a "directory" object to codemodel-v2Brad King2021-03-1611-11/+236
| | | | | | | | | | | | | | | | | | | | | | | | This object will contain more detailed directory-level information. Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
| * | | fileapi: Re-organize backtrace infrastructureBrad King2021-03-161-3/+2
| | | | | | | | | | | | | | | | Make it available to more parts of the codemodel object.
* | | | Merge topic 'dev/safreed/invalidconfigurepreset'Brad King2021-03-1716-10/+49
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | bc663dc333 Merge branch 'master' into invalid-configure-preset b9eb3541cf Tests: update tests to catch invalid configurePreset at read-time 83eeeff7dc Fail at read-time if configurePreset field invalid Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5912
| * | | Merge branch 'master' into invalid-configure-presetKyle Edwards2021-03-16169-83/+1045
| |\ \ \ | | |/ / | | | / | | |/ | |/|
| * | Tests: update tests to catch invalid configurePreset at read-timeSam Freed2021-03-1516-10/+49
| | |
| * | Merge topic 'xcode-framework-quoting' into release-3.20Brad King2021-03-113-0/+25
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 4f9a71974e Xcode: Restore support for spaces in framework names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5899
* | \ \ Merge topic 'tests-for-xctest_add_bundle'Brad King2021-03-162-0/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 74eda8ab1f Tests: Add XCTest cases to cover output directory selection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5888
| * | | | Tests: Add XCTest cases to cover output directory selectionYauheni Khnykin2021-03-122-0/+43
| | | | | | | | | | | | | | | | | | | | Fixes: #21800
* | | | | CMakePresets.json: Add ${hostSystemName} macroKyle Edwards2021-03-156-0/+38
| |_|_|/ |/| | |
* | | | Merge topic 'add_prefix_cmake_option'Brad King2021-03-1115-6/+81
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 400536c317 cmCommandLineArgument: trim leading empty spaces b227a9565e cmake: configure preset add support for --install-prefix mapping 38140713ad cmake: add support for --install-prefix command argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5843
| * | | | cmake: configure preset add support for --install-prefix mappingRobert Maynard2021-03-0912-1/+67
| | | | |
| * | | | cmake: add support for --install-prefix command argumentRobert Maynard2021-03-044-6/+15
| | | | | | | | | | | | | | | | | | | | Fixes: #21781
* | | | | Merge topic 'cpack-source-dir-symlink-test'Brad King2021-03-114-4/+25
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f42b048b9c Tests: Check symlinks to directories in RunCMake.CPackSymlinks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5887
| * | | | | Tests: Check symlinks to directories in RunCMake.CPackSymlinksOlivier Iffrig2021-03-104-4/+25
| | |/ / / | |/| | | | | | | | | | | | | Regression test for issue #21886
* | | | | Merge topic 'file-COPY_FILE-subcommand'Brad King2021-03-1130-0/+151
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 088444211e file: add `COPY_FILE` subcommand 100016e9cb cmSystemTools: add utilities to copy a file with error handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5885
| * | | | | file: add `COPY_FILE` subcommandBen Boeckel2021-03-1030-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `file(COPY)` subcommand is overloaded and busy for such a simple operation. Instead, make a simpler subcommand with error handling support.
* | | | | | Merge topic 'xcode-framework-quoting'Brad King2021-03-114-0/+26
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 00ecddd9eb Tests: Enable Framework test case with spaces everywhere possible b6cc9be009 Merge branch 'backport-xcode-framework-quoting' into xcode-framework-quoting 4f9a71974e Xcode: Restore support for spaces in framework names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5899
| * | | | | | Tests: Enable Framework test case with spaces everywhere possibleBrad King2021-03-102-1/+2
| | | | | | |
| * | | | | | Merge branch 'backport-xcode-framework-quoting' into xcode-framework-quotingBrad King2021-03-103-0/+25
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | / | | | |_|_|/ | | |/| | |
| | * | | | Xcode: Restore support for spaces in framework namesBrad King2021-03-103-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit ce2dee9e5b (Xcode: Don't add framework as -framework argument in linker info list, 2020-09-28, v3.19.0-rc1~47^2) we split up the path to a framework into the directory and framework name parts, but only retained the quoting on the directory part. Restore quoting of the framework name. Fixes: #21910
| | * | | | Merge branch 'backport-3.19-preset-no-comments' into release-3.19Brad King2021-02-246-6/+16
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !5853
* | | \ \ \ \ Merge topic 'ep-fc-revert-refactoring'Brad King2021-03-1014-117/+25
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 57d442e182 Revert ExternalProject and FetchContent refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5898
| * | | | | | Revert ExternalProject and FetchContent refactoringCraig Scott2021-03-0914-117/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring of the ExternalProject and FetchContent modules moved the commands into CMake scripts. This broke custom commands that used shell redirection or special build tool variables of the form $(MakeVar). Undo the sequence of commits that performed this refactoring and follow-up fixes associated with it. The following commits are reverted by this change: 4f3d1abbb4 (ExternalProject: Refactor pre-configure steps to support no-target uses, 2021-02-05) 17e5516e60 (FetchContent: Invoke steps directly and avoid a separate sub-build, 2021-01-29) bd876f3849 (FetchContent: Restore patch command support, 2021-02-18) 404cddb7bb (ExternalProject: Fix misuse of IS_NEWER_THAN in timestamp checks, 2021-02-21) b0da671243 (FetchContent: Don't update timestamps if files don't change, 2021-02-18) Fixes: #21892
* | | | | | | Merge topic 'test-ifort-windows'Brad King2021-03-101-0/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b0ab0439d Tests: Fix FortranModules test with Intel compiler on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5894
| * | | | | | | Tests: Fix FortranModules test with Intel compiler on WindowsBrad King2021-03-091-0/+5
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | The test regularly fails updating the `vc*.pdb` compiler-generated PDB file. Add the `/Z7` flag as the compiler suggests for this.
* | | | | | | Merge topic 'test-RunCMake-fail-info'Brad King2021-03-103-51/+47
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e8065554a8 Tests: Teach RunCMake to always print the command on failure 5f03744e36 Tests: Move RunCMake option construction closer to use f4d154755a Tests: Reverse RunCMake code path order 6fd7e8c53f Tests: Make RunCMake.Generator{Platform,Toolset} two-flag cases explicit Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5892
| * | | | | | Tests: Teach RunCMake to always print the command on failureBrad King2021-03-091-40/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we only printed explicit `RunCMake_TEST_COMMAND` cases on failure. Refactor the RunCMake infrastructure so that we always define `RunCMake_TEST_COMMAND` internally, and print it on failure.
| * | | | | | Tests: Move RunCMake option construction closer to useBrad King2021-03-091-9/+9
| | | | | | |