Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | CPack: Support arbitrary component name when packaging | Deniz Bahadir | 2024-05-01 | 11 | -28/+175 |
| | | | | | | | | | | | | | | | | | | CPack no longer blindly tries to create temporary packaging (sub)directories that contain the verbatim name of a component, which might contain characters that are not supported on the platform / filesystem. Instead, if the component's name contains a (possibly) problematic character its MD5 hash will be used for that temporary packaging (sub)directory. Likewise, if the component's name resembles a reserved device name (e.g. "COM1" on Windows) then the temporary packaging (sub)directory will get this name prefixed with an underscore. Similar, if it ends in a dot (on Windows) then the temporary packaging (sub)directory will get this name suffixed with an underscore. Fixes: #23612 | ||||
* | cmCPackGenerator: Fix debug message in function `PrepareGroupingKind` | Deniz Bahadir | 2024-04-30 | 1 | -2/+2 |
| | |||||
* | cmCPackGenerator: Fix comment in function `InstallCMakeProject` | Deniz Bahadir | 2024-04-30 | 1 | -1/+1 |
| | |||||
* | cmCPackGenerator: Slightly simplify function `InstallProject` | Deniz Bahadir | 2024-04-30 | 1 | -7/+7 |
| | |||||
* | cmCPackGenerator: Clean up and simplify function `DoPackage` | Deniz Bahadir | 2024-04-30 | 1 | -32/+47 |
| | |||||
* | cmCPackGenerator: Clean up and simplify function `PrepareNames` | Deniz Bahadir | 2024-04-30 | 1 | -33/+42 |
| | |||||
* | cmCPackGenerator: Refactor copying of package files into own function | Deniz Bahadir | 2024-04-30 | 2 | -19/+26 |
| | |||||
* | cmCPackGenerator: Refactor generation of checksum file into own function | Deniz Bahadir | 2024-04-30 | 2 | -12/+24 |
| | |||||
* | cmCPackGenerator: Handle CPACK_TEMPORARY_[INSTALL]_DIRECTORY properly | Deniz Bahadir | 2024-04-24 | 1 | -2/+56 |
| | | | | | | | | | | | | | | | | | | | The variable `CPACK_TEMPORARY_DIRECTORY` is an internal variable that is required for proper packaging. Historically, a second variable `CPACK_TEMPORARY_INSTALL_DIRECTORY` existed as well which had the same purpose. Both variables had to be set to the same value. Otherwise, CPack would not succeed with packaging. In order to ease CPack's usage, the variable `CPACK_TEMPORARY_INSTALL_DIRECTORY` is now no longer used. However, as it cannot be guaranteed that neither of these two (internal) variables have been used in the wild, some mechanism was introduced to preserve backwards-compatibility: If one of these variables is set, the other variable will be set to the same value. If, however, both are set to different values, CPack still fails but with an explicit error-message. Fixes: #25046 | ||||
* | CPack: Enable Inno Setup generator on non-Windows hosts | Andreas Oetken | 2024-04-15 | 2 | -10/+21 |
| | | | | | Innosetup tools can be run on Linux using Wine, thus there is no reason to block this in CMake. | ||||
* | CPack/WIX: Add support for WiX Toolset v4 | Brad King | 2024-03-24 | 10 | -61/+220 |
| | | | | | | | Add a `CPACK_WIX_VERSION` option to specify version WiX for which the project is configured. Fixes: #23910 | ||||
* | CPack/WIX: Remove "candle" from tool-agnostic error message | Brad King | 2024-03-22 | 1 | -1/+1 |
| | |||||
* | CPack/WIX: Improve formatting of CPACK_WIX_CUSTOM_XMLNS expansion | Brad King | 2024-03-22 | 1 | -10/+5 |
| | |||||
* | CPack/WIX: Prepare to provide version-specific WiX templates | Brad King | 2024-03-22 | 1 | -1/+5 |
| | | | | Move our template for WiX Toolset v3 to a versioned location. | ||||
* | cmCPackGenerator: Add option to FindTemplate to use alternate builtin path | Brad King | 2024-03-22 | 2 | -5/+11 |
| | |||||
* | Source: Use cmValue::IsOn and IsOff | Vitaly Stakhovsky | 2024-03-17 | 7 | -20/+20 |
| | | | | Speed up a bit by calling members directly. | ||||
* | cpack: Simplify config file selection | Brad King | 2024-02-27 | 1 | -2/+3 |
| | |||||
* | cpack: Simplify package directory selection logic | Brad King | 2024-02-27 | 1 | -19/+13 |
| | |||||
* | Source: Avoid using CollapseFullPath just to get parent directory | Brad King | 2024-02-27 | 2 | -3/+2 |
| | |||||
* | Reduce scope of variable | Christoph Grüninger | 2024-02-14 | 1 | -2/+1 |
| | | | | Found by Cppcheck (variableScope) | ||||
* | Use prefix ++ operators for non-primitive types | Christoph Grüninger | 2024-02-14 | 1 | -1/+1 |
| | | | | | Prevent unnecessary calls to copy constructor Found by Cppcheck (postfixOperator) | ||||
* | Remove unused variable | Christoph Grüninger | 2024-02-14 | 2 | -4/+0 |
| | | | | Found by Cppcheck. | ||||
* | CPack/WiX: Make InstallScope configurable | Max Gaukler | 2023-11-16 | 1 | -0/+1 |
| | | | | | | | | Add a new `CPACK_WIX_INSTALL_SCOPE` variable to set the `InstallScope` when using the default WiX template. Set the default to the bug-free value `perMachine`. Fixes: #20962 | ||||
* | CPack: Avoid adding duplicate files to archive when combining components | Atılhan Emre Dursunoğlu | 2023-10-26 | 2 | -8/+151 |
| | | | | Fixes: #25280 | ||||
* | Merge topic 'vector-emplace-back' | Brad King | 2023-10-24 | 1 | -3/+5 |
|\ | | | | | | | | | | | | | | | | | | | 9ca6dfc280 Source: Reduce vector entry allocations and copies aaeb2e0aa8 cmLinkItemGraphVisitor: Remove unnecessary syntax d1c1e95331 cmCPackInnoSetupGenerator: Reserve space to reduce allocations Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8891 | ||||
| * | Source: Reduce vector entry allocations and copies | Rose | 2023-10-23 | 1 | -3/+4 |
| | | | | | | | | Prefer `emplace_back` over `push_back`. | ||||
| * | cmCPackInnoSetupGenerator: Reserve space to reduce allocations | Rose | 2023-10-23 | 1 | -0/+1 |
| | | |||||
* | | Fix clang -Wreserved-identifier by renaming an enum | Sean McBride | 2023-10-20 | 1 | -1/+1 |
|/ | |||||
* | Source: Fix mysterious new IWYU warnings | Kyle Edwards | 2023-08-29 | 1 | -0/+2 |
| | |||||
* | cmCryptoHash: prefer to cmSystemTools::ComputeFileHash | Ben Boeckel | 2023-08-08 | 1 | -2/+2 |
| | |||||
* | cmCryptoHash: prefer to cmSystemTools::ComputeStringMD5 | Ben Boeckel | 2023-08-08 | 1 | -1/+3 |
| | | | | | | | The latter call is no longer post-bootstrap only since 596439b1bb (cmCustomCommandGenerator: Add option to transform depfile, 2020-10-05) via !5325. Convert callers to just use `cmCryptoHash` directly and remove the bootstrap guard. | ||||
* | Merge topic 'windows-tidy-cmstrcat' | Brad King | 2023-08-01 | 12 | -125/+145 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d58253d155 clang-tidy: fix `performance-faster-string-find` lints a19ec77200 clang-tidy: fix `readability-static-accessed-through-instance` lints 3d03629f20 cmWIXRichTextFormatWriter: remove identity cast 1df29567ac clang-tidy: fix `modernize-use-equals-default` lints 32fe862b8c clang-tidy: fix `readability-container-size-empty` lints 7eaab9a957 clang-tidy: fix `modernize-raw-string-literal` lints ffa49c23aa clang-tidy: fix `readability-else-after-return` lints 4489e9a85c clang-tidy: fix `modernize-use-auto` lints ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8668 | ||||
| * | clang-tidy: fix `performance-faster-string-find` lints | Ben Boeckel | 2023-07-31 | 1 | -1/+1 |
| | | |||||
| * | clang-tidy: fix `readability-static-accessed-through-instance` lints | Ben Boeckel | 2023-07-31 | 1 | -1/+1 |
| | | |||||
| * | cmWIXRichTextFormatWriter: remove identity cast | Ben Boeckel | 2023-07-31 | 1 | -1/+1 |
| | | |||||
| * | clang-tidy: fix `modernize-use-equals-default` lints | Ben Boeckel | 2023-07-31 | 1 | -3/+1 |
| | | |||||
| * | clang-tidy: fix `readability-container-size-empty` lints | Ben Boeckel | 2023-07-31 | 1 | -1/+1 |
| | | |||||
| * | clang-tidy: fix `modernize-raw-string-literal` lints | Ben Boeckel | 2023-07-31 | 2 | -2/+2 |
| | | |||||
| * | clang-tidy: fix `readability-else-after-return` lints | Ben Boeckel | 2023-07-28 | 2 | -9/+10 |
| | | |||||
| * | clang-tidy: fix `modernize-use-auto` lints | Ben Boeckel | 2023-07-28 | 3 | -3/+3 |
| | | |||||
| * | clang-tidy: fix `modernize-use-nullptr` lints | Ben Boeckel | 2023-07-28 | 2 | -4/+5 |
| | | |||||
| * | clang-tidy: fix `readability-braces-around-statements` lints | Ben Boeckel | 2023-07-28 | 3 | -8/+16 |
| | | |||||
| * | cmLocalVisualStudio10Generator: remove unnecessary `.c_str()` | Ben Boeckel | 2023-07-28 | 2 | -5/+4 |
| | | |||||
| * | strings: use `emplace_back` with `cmStrCat` arguments | Ben Boeckel | 2023-07-28 | 1 | -4/+4 |
| | | |||||
| * | strings: use character literals where possible | Ben Boeckel | 2023-07-28 | 8 | -42/+42 |
| | | |||||
| * | cmStrCat: use in Windows-specific sources | Ben Boeckel | 2023-07-28 | 3 | -29/+36 |
| | | |||||
| * | strings: simplify streaming sequences | Ben Boeckel | 2023-07-27 | 1 | -6/+5 |
| | | |||||
| * | strings: combine string literals where possible | Ben Boeckel | 2023-07-27 | 1 | -5/+8 |
| | | |||||
| * | strings: compare to static `string_view` instances in Windows-only code | Ben Boeckel | 2023-07-27 | 3 | -14/+18 |
| | | |||||
* | | strings: use single characters where possible | Ben Boeckel | 2023-07-30 | 3 | -18/+18 |
| | |