build: fix CMake generator for non-Ninja builds
authorIvan Romanov <drizt72@zoho.eu>
Mon, 26 Aug 2024 07:45:38 +0000 (12:45 +0500)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 29 Aug 2024 17:46:48 +0000 (19:46 +0200)
commit4646aa169986036772b9f75393c08508d20ddf8b
tree19765b29cc113948763d307c81d0c55ded09a078
parentdd1bfbe97113185e8f968a889c26f9a4be19fbdf
build: fix CMake generator for non-Ninja builds

OpenWRT by default uses the Ninja generator, but some packages disable
Ninja and use the default Unix Makefiles generator. This generator can
be overridden in the user environment with `CMAKE_GENERATOR`. This patch
explicitly sets the correct generator when `PKG_USE_NINJA:=0`.

In particular, the `mt76` package uses the Makefiles generator.

Signed-off-by: Ivan Romanov <drizt72@zoho.eu>
Link: https://github.com/openwrt/openwrt/pull/16263
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/cmake.mk