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.
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.
On Sat, 30 Jul 2022 00:38:54 +0800
Fabulous Zhang Zheng <zheng1181822466@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 separatelydenoting
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:
Thanks for your reply
<waebbl-gentoo@posteo.net> 于2022年7月30日周六 01:09写道:
On Sat, 30 Jul 2022 00:38:54 +0800If I try something like:
Fabulous Zhang Zheng <zheng1181822466@gmail.com> wrote:
Dear everyone,gentoo
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
developers.
There's #gentoo-dev-help
denoting
After trying to read cmake.eclass source code, I think separately
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 ! 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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 86:11:45 |
Calls: | 6,696 |
Calls today: | 1 |
Files: | 12,230 |
Messages: | 5,348,078 |