Skip to content

cmake ARCHIVE_EXTRACT command #78

Description

@ivangermes

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:

file(ARCHIVE_EXTRACT INPUT ${PYTHON_FILE} DESTINATION ${CMAKE_BINARY_DIR})

file(ARCHIVE_EXTRACT INPUT ${PYTHON_FILE} DESTINATION ${PYTHON_PACKAGE})

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions