summaryrefslogtreecommitdiffstats
path: root/Help
Commit message (Collapse)AuthorAgeFilesLines
* execute_process: Change default ENCODING to UTF-8Brad King2024-09-164-1/+37
| | | | | | | | | | | | | Windows is heading toward making UTF-8 the preferred MBCS. As CMake's internal encoding, `UTF-8` is effectively equivalent to `NONE`, which was CMake's behavior prior to 3.15's accidental change to `AUTO`. Behavior of `ENCODING UTF-8` is independent of CMake's internal encoding, making it in principle a better default than `NONE`. Add policy CMP0176 for compatibility and to document the default's history. Fixes: #26262
* execute_process: Document and test ENCODING defaultBrad King2024-09-131-1/+4
| | | | | | | | | | | | | | The default was originally AUTO in commit 2ed473b3b8 (execute_process: Add ENCODING option for Windows child process output, 2016-11-23, v3.8.0-rc1~232^2) but was changed back to NONE by commit 07c3380a6e (execute_process: Restore no-decoding default behavior, 2017-02-13, v3.8.0-rc2~26^2) for CMake 3.8. Later it was accidentally changed back to AUTO by commit b783e62533 (cmExecuteProcessCommand: Port to cmArgumentParser, 2019-03-25, v3.15.0-rc1~270^2) in CMake 3.15 but the documentation was not updated. Document the current default, AUTO, and add a test case to verify it. Issue: #26262
* Help/command/execute_process: Improve formatting of ENCODING namesBrad King2024-09-131-4/+11
|
* Merge topic 'file-archive-workdir'Brad King2024-09-122-35/+63
|\ | | | | | | | | | | | | | | d8a9aabd24 file(ARCHIVE_CREATE): add WORKING_DIRECTORY option d65b5a8e03 Help: Format file(ARCHIVE*) options as definition lists Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9803
| * file(ARCHIVE_CREATE): add WORKING_DIRECTORY optionYuri Witte2024-09-112-0/+14
| | | | | | | | | | Fixes: #25260 Issue: #21653
| * Help: Format file(ARCHIVE*) options as definition listsBrad King2024-09-111-36/+50
| |
* | Merge topic 'cpack-ifw-product-images'Brad King2024-09-122-0/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 5b8fa21512 Tests: Add a test covering the CPack IFW Generator 3331c7032f CPack/IFW: Add option for ProductImages URLs d58f90f628 CPack/IFW: Actually ignore missing ProductImages 3c214f2638 CPack/IFW: Fix generation of ProductImages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9798
| * | CPack/IFW: Add option for ProductImages URLsJulien Marrec2024-09-112-0/+18
| | | | | | | | | | | | Add a `CPACK_IFW_PACKAGE_PRODUCT_IMAGE_URLS` variable for them.
* | | Merge topic 'genex-tco-subgraph'Brad King2024-09-111-0/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4a11772618 GenEx: Limit TARGET_PROPERTY transitive closure optimization to subgraphs Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !9789
| * | | GenEx: Limit TARGET_PROPERTY transitive closure optimization to subgraphsMichael Herwig2024-09-101-0/+8
| | | | | | | | | | | | | | | | Fixes: #25728
* | | | Merge topic 'add_custom_command-arg-handling'Brad King2024-09-113-9/+101
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec519f3e97 add_custom_command: Validate arguments more rigorously 8dc8be0884 AndroidTestUtilities: Remove DEPENDS that was being silently ignored 316840b430 Tests: Add missing POST_BUILD to custom commands f5f80305ef ExternalProject: Ensure keywords requiring an argument have one Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9785
| * | | add_custom_command: Validate arguments more rigorouslyCraig Scott2024-09-093-9/+101
| |/ / | | | | | | | | | | | | | | | | | | Add a new CMP0175 policy to preserve backward compatibility for projects that were using unsupported keywords or arguments. Fixes: #26096, #21089, #18976
* | | Check*: Add option to pass link directories into checksAliaksandr Averchanka2024-09-092-0/+104
| |/ |/|
* | Merge topic 'cmp0168-populate-nondeclare-regression'Craig Scott2024-09-081-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | cbb727ca6b FetchContent: Don't update verify script timestamp if it doesn't change 795e7b44f2 Help: file(CONFIGURE) only updates output file timestamp if it changes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9799
| * | Help: file(CONFIGURE) only updates output file timestamp if it changesCraig Scott2024-09-061-1/+3
| | |
* | | Merge topic 'windows-kernel-mode-driver-includes'Brad King2024-09-052-0/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b151bcfc9e WindowsKernelModeDriver: Add WDK include and link paths on MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9705
| * | | WindowsKernelModeDriver: Add WDK include and link paths on MSVCJoseph Snyder2024-09-032-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detect Windows Kernel-Mode Driver include directories and library search paths from the WDK command-line environment. Require toolchain files to specify the KMDF target version via a new variable. Since this changes the behavior of the WindowsKernelModeDriver experimental feature, update its UUID.
* | | | Merge topic 'build-databases'Brad King2024-09-059-0/+152
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e77655555c cmExperimental: gate build database support behind a flag 23cbeb5035 ci: enable `build_database` CXXModules tests 6863c1d823 Tests/CXXModules: add tests for module commands 123107c1a4 Tests/CXXModules: add support for running targets under a given config 438038b5e1 Tests/CXXModules: support building specific targets of example trees 84bc710d84 cmGlobalGenerator: generate build database files for targets 670f753f24 cmDyndepCollation: write build database metadata dcf9a66ffe cxxmodules: plumb control data for exporting build databases ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9708
| * | | | cmExperimental: gate build database support behind a flagBen Boeckel2024-09-034-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | Given that the feature currently only supports C++ sources and is not formally accepted by ISO yet, gate it behind a flag.
| * | | | cxxmodules: plumb control data for exporting build databasesBen Boeckel2024-08-278-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the target property, its initializing variable, its initializing environment variable, and updating related docs to mention the new bits.
* | | | | Merge topic 'doc-cmake_parse_arguments-prefix'Craig Scott2024-09-031-49/+106
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000abe74f Help: Recommend good prefixes for cmake_parse_arguments, expand example bb37d0e1a5 Help: Improve grammar and wording for cmake_parse_arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9788
| * | | | | Help: Recommend good prefixes for cmake_parse_arguments, expand exampleCraig Scott2024-08-311-25/+81
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25773
| * | | | | Help: Improve grammar and wording for cmake_parse_argumentsCraig Scott2024-08-311-28/+29
| | |_|_|/ | |/| | |
* | | | | Merge topic 'pkgc-rel-notes'Brad King2024-09-031-0/+8
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | a081e4ba74 PkgC: Add release note Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9784
| * | | | PkgC: Add release noteVito Gamberini2024-08-291-0/+8
| | |/ / | |/| | | | | | | | | | | | | | This was missed in commit 8555c33d92 (PkgC: Add cmake_pkg_config(EXTRACT) command, 2024-07-22).
* | | | Merge branch 'release-3.30'Brad King2024-08-291-7/+8
|\ \ \ \ | | |_|/ | |/| |
| * | | CMake 3.30.3v3.30.3Brad King2024-08-291-7/+8
| | | |
| * | | Merge branch 'release-3.29' into release-3.30Brad King2024-08-291-2/+2
| |\ \ \
* | \ \ \ Merge branch 'release-3.29'Brad King2024-08-291-2/+2
|\ \ \ \ \ | | |/ / / | |/| / / | |_|/ / |/| | |
| * | | CMake 3.29.8v3.29.8Brad King2024-08-291-2/+2
| | | |
* | | | Merge topic 'standard-link-directories'Brad King2024-08-293-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20e9b59d5e Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIES Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9707
| * | | | Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIESVito Gamberini2024-08-283-0/+21
| | | | | | | | | | | | | | | | | | | | Closes: #18222
* | | | | Drop Visual Studio 12 2013 generatorBrad King2024-08-2818-85/+34
| | | | | | | | | | | | | | | | | | | | This generator has been deprecated since CMake 3.28. Remove it.
* | | | | Merge topic 'if-space-dldt'Brad King2024-08-281-2/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | 2c0d16df7b Help/command/if: fix formatting in precedence order overview Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9777
| * | | | Help/command/if: fix formatting in precedence order overviewAleksei Shpakovskii2024-08-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Due to extra space symbols, it was rendered as definition list inside list item, instead of plain list item.
* | | | | Merge topic 'cps-export'Brad King2024-08-272-0/+79
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b2dc1bd149 CMake: Suppress IBM XL optimization warning 1a846c8849 Tests: Add tests for install(PACKAGE_INFO) 3d52d70b84 export: Add initial CPS support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9693
| * | | | | export: Add initial CPS supportMatthew Woehlke2024-08-142-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add initial support for exporting (install only, for now) Common Package Specification (https://cps-org.github.io/cps/) format package descriptions. This has some limitations, such as not supporting generator expressions (as these cannot be portably exported), and only partially supporting transitive dependencies, but should be usable for at least some simple cases. (Actually, $<LINK_ONLY> is theoretically supportable, but is not yet implemented.) This still needs tests; these will be added in the next commit. Other potential improvements include support for language-specific compile definitions and inferring some package properties from project properties. Additionally, there is no module support yet; this is partly pending on having a tool agnostic format for providing the necessary information.
* | | | | | Merge topic 'FindPython-free-threaded-python'Brad King2024-08-271-0/+8
|\ \ \ \ \ \ | |_|/ / / / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | 10abd2ac5a FindPython: ensure a usable environment is set for the free threaded Python Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9775
| * | | | FindPython: ensure a usable environment is set for the free threaded PythonMarc Chevrier2024-08-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define the `Python_DEFINITIONS` variable for the support of free threaded Python developments on Windows. This is a complement to commit 9a0dee7257 (FindPython: Add support for free threaded python, 2024-05-30).
* | | | | Merge topic 'cmake-parse-arguments-one-arg-empty-string'Brad King2024-08-263-0/+40
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ceeea4e511 cmake_parse_arguments: Set variable if empty string given after keyword 2f5cc6afa1 cmParseArgumentsCommand: Use cmStrCat() for string concatenation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9748
| * | | | | cmake_parse_arguments: Set variable if empty string given after keywordCraig Scott2024-08-223-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a single-value keyword is followed by an empty string, the command unsets the variable for that keyword instead of setting it to the empty string. This is inconsistent and unexpected. Add policy CMP0174 which ensures the variable for a single-value keyword is always set when any value is given, not just for a non-empty value. The new CMP0174 policy only affects the PARSE_ARGV form of cmake_parse_arguments. The older form silently drops all empty string arguments before processing the argument list. Fixes: #25972
* | | | | | Merge topic 'fileapi-config-dir'Brad King2024-08-264-1/+32
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1df94443fe fileapi: Add support for user-wide queries a991a5019b Tests: Isolate test suite from user-wide configuration 320b81847d Tests: Remove unused cvs anonymous access credentials Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9744
| * | | | | | fileapi: Add support for user-wide queriesMartin Duffy2024-08-224-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19168
* | | | | | | Merge topic 'doc-get_property-undefined'Craig Scott2024-08-231-13/+14
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a1fdcb9d47 Help: get_property() result var is unset if property is not set edee1b18b2 Help: Minor formatting and grammar fixes for get_property() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9769
| * | | | | | | Help: get_property() result var is unset if property is not setCraig Scott2024-08-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #26152
| * | | | | | | Help: Minor formatting and grammar fixes for get_property()Craig Scott2024-08-221-10/+10
| | |/ / / / / | |/| | | | |
* | | | | | | Help/command/if: list all condition operators in precedence order overviewAleksei Shpakovskii2024-08-221-2/+4
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | This section is near the top and so can serve as an exhaustive table of contents for the things that `if()` can check.
* | | | | | Merge topic 'doc-if-IN_LIST'Brad King2024-08-221-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4a359e5d4 Help/command/if: Document variable expansion by IN_LIST Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9764
| * | | | | | Help/command/if: Document variable expansion by IN_LISTBrad King2024-08-211-0/+4
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously this behavior was only mentioned implicitly by the command signature. Describe it explicitly as we do for other conditions that automatically expand variables. Fixes: #26234
* | | | | | Help: Target property COMPILE_FLAGS has been superseded by COMPILE_OPTIONSPeter Kokot2024-08-211-2/+5
|/ / / / / | | | | | | | | | | | | | | | | | | | | The `COMPILE_FLAGS` is not actually deprecated but has been superseded by the `COMPILE_OPTIONS` target property.