You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This file controls Flutter-level build steps. It should not be edited.
cmake_minimum_required(VERSION 3.10)
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
# Configuration provided via flutter tool.
include(${EPHEMERAL_DIR}/generated_config.cmake)
Logs
Launching lib/main.dart on Linux in debug mode...
CMake Error at CMakeLists.txt:2 (_minimum_required):
Unknown CMake command "_minimum_required".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.27)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Exception: Unable to generate build files
Exited (1).
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.9, on Fedora Linux 39
(Workstation Edition) 6.5.11-300.fc39.x86_64, locale
en_US.UTF-8)
[✓] Android toolchain - develop for Android devices
(Android SDK version 34.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome
executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to
a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (1 available)
[✓] Network resources
! Doctor found issues in 1 category.
Activity
ghost changed the title [-][Bug] Debug console returns: Unknown CMake command "_minimum_required".[/-][+][Bug, Fedora 39] Debug console returns: Unknown CMake command "_minimum_required".[/+]on Nov 15, 2023
It could be caused by using a plugin that uses a different CMake version and the plugin may have released a new version recently. I would recommend you check around plugins you are using to see if there is one.
I'm not sure what we can do to help here at this point, without more specific information. We explicitly support Debian and Ubuntu, but we don't really have the resources to debug things on Fedora (and we don't have machines with that installed).
So, unfortunately, we're going to have to close this issue. If you have a specific PR or solution to contribute, we would gladly review that.
(Desktop Triage)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-][Bug] Debug console returns: Unknown CMake command "_minimum_required".[/-][+][Bug, Fedora 39] Debug console returns: Unknown CMake command "_minimum_required".[/+]huycozy commentedon Nov 16, 2023
Hi @HatWearingMann
What is your current installed cmake version in the system? Please share the entire output of
flutter doctor -v.Also, does this issue occur on a newly created Flutter project?
huycozy commentedon Nov 17, 2023
It could be caused by using a plugin that uses a different CMake version and the plugin may have released a new version recently. I would recommend you check around plugins you are using to see if there is one.
huycozy commentedon Nov 22, 2023
I mean the dependency you are using (in
pubspec.yaml). There was a case that you may take a look #131555 (comment).huycozy commentedon Nov 23, 2023
I'm using
Ubuntu 22.04.3 LTSdistro withcmake version 3.22.1and can't see the issue. Labeling the issue for other's input.gspencergoog commentedon Nov 30, 2023
I'm not sure what we can do to help here at this point, without more specific information. We explicitly support Debian and Ubuntu, but we don't really have the resources to debug things on Fedora (and we don't have machines with that installed).
So, unfortunately, we're going to have to close this issue. If you have a specific PR or solution to contribute, we would gladly review that.
(Desktop Triage)
github-actions commentedon Dec 19, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.