Thanks for your reply <waebbl-gen...@posteo.net> 于2022年7月30日周六 01:09写道:
> On Sat, 30 Jul 2022 00:38:54 +0800 > Fabulous Zhang Zheng <zheng1181822...@gmail.com> wrote: > > > Dear everyone, > > > > > > While gentoo-devhelp is a better place for questions, it's been inactive > > for years so I sent an email here. Apologies if this is solely for gentoo > > developers. > > There's #gentoo-dev-help > > > > > After trying to read cmake.eclass source code, I think separately > denoting > > ninja/make in src_compile and src_install might be possible. But > > cmake_build still automatically detects the build type so I am confused. > > > > Take a look at CMAKE_MAKEFILE_GENERATOR variable used in cmake.eclass. > You want to change this from the default to emake if you want to use > make instead of ninja. > > > I noticed this variable before but it must be set before inherit. If I try something like: if ! use ninja; then CMAKE_MAKEFILE_GENERATOR=emake fi inherit cmake xdg ninja-utils pkgcheck will say report error: external commands disallowed during metadata regen: 'use ninja' Best regards