mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
cmake-utils.eclass: die if ninja is enabled but not installed
This could happen if ninja is manually enabled (eg. make.conf) but not installed Gentoo-bug: 561570
This commit is contained in:
@@ -228,6 +228,11 @@ _generator_to_use() {
|
||||
|
||||
case ${CMAKE_MAKEFILE_GENERATOR} in
|
||||
ninja)
|
||||
# if ninja is enabled but not installed, the build could fail
|
||||
# this could happen if ninja is manually enabled (eg. make.conf) but not installed
|
||||
if ! has_version dev-util/ninja; then
|
||||
die "CMAKE_MAKEFILE_GENERATOR is set to ninja, but ninja is not installed. Please install dev-util/ninja or unset CMAKE_MAKEFILE_GENERATOR."
|
||||
fi
|
||||
generator_name="Ninja"
|
||||
;;
|
||||
emake)
|
||||
|
||||
Reference in New Issue
Block a user