Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

cmake ARCHIVE_EXTRACT command

未关闭
#78 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cmake
领域
build-system

调研方向

先从引用的 linux/CMakeLists.txt 和 windows/CMakeLists.txt 文件开始,然后检查项目如何声明所需的 CMake 版本。使用 CMake 3.16 重现该失败,并验证在 Linux 和 Windows 上所选最低版本的行为。当不受支持的 CMake 版本产生明确结果,且文档中的要求与所使用的命令一致时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

bug

Used a CMake ARCHIVE_EXTRACT command that supports only from CMake 3.18.
But required cmake version is 3.10 ( for linux ) or 3.14 ( for windows ).

This leads to embarrassing errors ( ubuntu 20.04 with out-of-box cmake version 3.16 ):

CMake Error at 
flutter/ephemeral/.plugin_symlinks/serious_python_linux/linux/CMakeLists.txt:25 
(file):
  file does not recognize sub-command ARCHIVE_EXTRACT


Unable to generate build files

Error building Flet app - see the log of failed command above.

CMake docs about ARCHIVE_EXTRACT:
https://cmake.org/cmake/help/latest/command/file.html#archive-extract

ARCHIVE_EXTRACT usage:
https://github.com/flet-dev/serious-python/blob/e44dff11516019060d4e37e7a4ab900750c0243c/src/serious_python_linux/linux/CMakeLists.txt#L25
https://github.com/flet-dev/serious-python/blob/e44dff11516019060d4e37e7a4ab900750c0243c/src/serious_python_windows/windows/CMakeLists.txt#L24

I suggest increase requirement version of cmake to 3.18.
There will be a clearer error message.
And it will also allow to learn the list_prepend function. Because list(TRANSFORM ..) and list(PREPEND..) will already be supported in cmake 3.18.
E.g. here https://github.com/flet-dev/serious-python/blob/e44dff11516019060d4e37e7a4ab900750c0243c/src/serious_python/example/run_example/linux/flutter/CMakeLists.txt#L14

主要语言
Dart
星标
325
派生
46
平均合并
15 小时 47 分钟
30 天内合并 PR
6

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

flet-dev/serious-python 的其他 Issue

查看 flet-dev/serious-python 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。