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
|
function(list_prepend LIST_NAME PREFIX) |
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 docs about ARCHIVE_EXTRACT:
https://cmake.org/cmake/help/latest/command/file.html#archive-extract
ARCHIVE_EXTRACT usage:
serious-python/src/serious_python_linux/linux/CMakeLists.txt
Line 25 in e44dff1
serious-python/src/serious_python_windows/windows/CMakeLists.txt
Line 24 in e44dff1
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
serious-python/src/serious_python/example/run_example/linux/flutter/CMakeLists.txt
Line 14 in e44dff1