summaryrefslogtreecommitdiffstats
path: root/Help
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs-custom-flag-table'Brad King2021-03-231-0/+24
|\ | | | | | | | | | | | | | | 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-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge topic 'doc-xcoff-chrpath'Brad King2021-03-231-6/+13
|\ \ | | | | | | | | | | | | | | | | | | 4a9fb82030 Help: CMAKE_NO_BUILTIN_CHRPATH applies to XCOFF too Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5925
| * | Help: CMAKE_NO_BUILTIN_CHRPATH applies to XCOFF tooCraig Scott2021-03-221-6/+13
| | |
| * | Merge topic 'schema-typo' into release-3.20Brad King2021-03-191-15/+15
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | bda6446e6f Help: Fix typos in presets schema field descriptions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5922
* | \ \ Merge topic 'cmake-presets-condition'Brad King2021-03-234-9/+460
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-224-9/+460
| | | | |
* | | | | Merge topic 'cxx-module-extensions'Brad King2021-03-231-0/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7c4c4f1406 Treat '.ixx' and '.cppm' files as C++ sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5926
| * | | | | Treat '.ixx' and '.cppm' files as C++ sourcesAndrew Gilewsky2021-03-221-0/+4
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | These extensions are used by convention for C++ modules and interface units with MSVC.
* | | | | Help/guide: use GNUInstallDirs in importing-exporting exampleBen Boeckel2021-03-195-25/+35
|/ / / / | | | | | | | | | | | | | | | | | | | | This allows the example to also show how to work on systems with different libdir settings (e.g., Debian multiarch or Red Hat multilib) rather than a regular `lib` directory.
* | | | Merge topic 'update_cuda_custom_toolkit_location_folder_structure'Brad King2021-03-191-7/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-181-7/+6
| |/ / / | | | | | | | | | | | | Fixes: #21170
* | | | Merge topic 'FindDevIL-targets'Brad King2021-03-191-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-181-0/+4
| |/ / / | | | | | | | | | | | | Fixes: #21900
* | | | Merge topic 'schema-typo'Brad King2021-03-191-16/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fae7910268 Help: Fix typos in presets schema field descriptions fa1b729b9d Merge branch 'backport-preset-schema-typos' into preset-schema-typos bda6446e6f Help: Fix typos in presets schema field descriptions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5922
| * | | | Help: Fix typos in presets schema field descriptionsAdriaan de Groot2021-03-181-1/+1
| | | | |
| * | | | Merge branch 'backport-preset-schema-typos' into preset-schema-typosBrad King2021-03-181-15/+15
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/|
| | * | Help: Fix typos in presets schema field descriptionsAdriaan de Groot2021-03-181-15/+15
| | | |
* | | | Merge topic 'fix-CMP0118-NEW'Brad King2021-03-191-2/+8
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | 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
| * | Help: Document CMP0118 requirement for boolean valuesBrad King2021-03-181-2/+8
| |/
| * Merge topic 'vs-toolset-version' into release-3.20Brad King2021-03-152-0/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 30c835428f VS: Accept and translate '-T version=' values with three components 58a50a3a0a VS: Fix '-T version=14.28' under VS 16.9 09f59da7f0 cmGlobalVisualStudioVersionedGenerator: Clarify local variable name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5903
* | \ Merge topic 'fileapi-codemodel-directory'Brad King2021-03-182-36/+239
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-162-0/+150
| | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
| * | | fileapi: Add backtraceGraph to codemodel-v2 "directory" objectBrad King2021-03-161-4/+8
| | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
| * | | fileapi: Add a "directory" object to codemodel-v2Brad King2021-03-162-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | 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-34/+42
| | | | | | | | | | | | | | | | Make it available to more parts of the codemodel object.
* | | | Merge topic 'doc-flag-var-strings'Brad King2021-03-172-0/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | 95c50da8af Help: Document that CMAKE_<LANG>_FLAGS[_INIT] are strings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5915
| * | | Help: Document that CMAKE_<LANG>_FLAGS[_INIT] are stringsAlexander Richardson2021-03-172-0/+5
| | | | | | | | | | | | | | | | Issue: #21944
* | | | Merge topic 'cmake-presets-host-system-name'Brad King2021-03-163-5/+27
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d497e159b CMakePresets.json: Add ${hostSystemName} macro 79d03ab505 Help: Fix version numbers in CMakePresets.json documentation 69527a1979 Refactor: Pass CMakePresets.json version to ExpandMacros() functions ad19da011d Refactor: Add cmSystemTools::GetSystemName() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5902
| * | | | CMakePresets.json: Add ${hostSystemName} macroKyle Edwards2021-03-152-0/+11
| | | | |
| * | | | Help: Fix version numbers in CMakePresets.json documentationKyle Edwards2021-03-151-5/+6
| | | | |
| * | | | Refactor: Add cmSystemTools::GetSystemName()Kyle Edwards2021-03-151-0/+10
| |/ / / | | | | | | | | | | | | And use it for CMAKE_HOST_SYSTEM_NAME and CMAKE_SYSTEM_NAME.
* | | | Merge topic 'doc-configure_file-cmakedefine01'Brad King2021-03-161-2/+24
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | c13f75982f Help: Clarify configure_file #cmakedefine01 syntax and behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !5909
| * | | Help: Clarify configure_file #cmakedefine01 syntax and behaviorElsie Hupp2021-03-151-2/+24
| | | | | | | | | | | | | | | | Fixes: #21935
* | | | Merge topic 'vs-toolset-version'Brad King2021-03-152-0/+28
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | | | | 30c835428f VS: Accept and translate '-T version=' values with three components 58a50a3a0a VS: Fix '-T version=14.28' under VS 16.9 09f59da7f0 cmGlobalVisualStudioVersionedGenerator: Clarify local variable name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5903
| * | VS: Accept and translate '-T version=' values with three componentsBrad King2021-03-122-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | The VS 16.8 and VS 16.9 toolset versions differ only in their third component. The `vcvarsall` option `-vcvars_ver=` accepts a three component version, so accept this format for VS toolset selection too. Issue: #21922
| * | VS: Fix '-T version=14.28' under VS 16.9Brad King2021-03-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CMake accepts the toolset version that is default in the current VS version by matching the name later VS versions will use for the SxS props files. It predicts the future name based on the first two components of the current VS version's default toolset. However, this heuristic breaks naming the VS 16.8 toolset version 14.28 under VS 16.9 because the latter's default toolset version is 14.28.29910, which did not increment the second version component (unprecedented in VS). Fix this by always using the requested version's SxS props file when it exists, even if it matches the first two components of the current VS version's default toolset. Also add a special case for the name VS 16.10 will use for VS 16.9's default toolset, so that it can be used with VS 16.9 too. Fixes: #21922
* | | Merge topic 'add_prefix_cmake_option'Brad King2021-03-114-3/+109
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-094-4/+102
| | | |
| * | | cmake: add support for --install-prefix command argumentRobert Maynard2021-03-042-0/+8
| | | | | | | | | | | | | | | | Fixes: #21781
* | | | Merge topic 'file-COPY_FILE-subcommand'Brad King2021-03-112-0/+27
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-102-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `file(COPY)` subcommand is overloaded and busy for such a simple operation. Instead, make a simpler subcommand with error handling support.
* | | | | Merge topic 'ep-fc-revert-refactoring'Brad King2021-03-101-12/+0
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | 57d442e182 Revert ExternalProject and FetchContent refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5898
| * | | Revert ExternalProject and FetchContent refactoringCraig Scott2021-03-091-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 'android-r22' into release-3.20Brad King2021-03-034-0/+16
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 005e2cdfb0 Android: Do not use gold for ndk >= r22 ed7a87f270 Tests: Update RunCMake.Android for NDK r22 4950d35733 Help: Document CMAKE_ANDROID_NDK_VERSION variable 746906242d Android: Detect NDK version number Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5862
* | | | | Find: Document that first argument to PATHS and HINTS can be ENV{}Robert Maynard2021-03-051-2/+2
| | | | |
* | | | | file(RENAME): Add option to not replace existing pathBrad King2021-03-042-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Add a `NO_REPLACE` option that prevents overwriting `<newname>` if it exists.
* | | | | file(RENAME): Add option to capture error message on failureBrad King2021-03-042-2/+14
| | | | |
* | | | | Merge topic 'android-r22'Brad King2021-03-034-0/+16
|\ \ \ \ \ | | |/ / / | |/| / / | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 005e2cdfb0 Android: Do not use gold for ndk >= r22 ed7a87f270 Tests: Update RunCMake.Android for NDK r22 4950d35733 Help: Document CMAKE_ANDROID_NDK_VERSION variable 746906242d Android: Detect NDK version number Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5862
| * | | Help: Document CMAKE_ANDROID_NDK_VERSION variableBrad King2021-03-034-0/+16
| | | |