Bug 13256 - CMAKE_GENERATOR environment variable makes CMake based builds fail
Summary: CMAKE_GENERATOR environment variable makes CMake based builds fail
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-08 13:13 UTC by sven.fischer
Modified: 2024-06-15 14:55 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sven.fischer 2020-10-08 13:13:26 UTC
If the CMAKE_GENERATOR environment variable is set to e.g. Ninja, CMake based build will fail because CMake generates Ninja build files instead of Makefiles. 

To fix this use either

a) explicitly set -G"Unix Makefiles" in package/pkg-cmake.mk
b) (better) use "cmake --build ." instead of make
Comment 1 Thomas Petazzoni 2020-10-08 14:32:44 UTC
Sounds good. Could you send a patch implementing (2) ? Thanks!
Comment 2 Yann E. MORIN 2024-06-15 14:55:36 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!