From 385fc99384fe36e940a814545e9e85ccba2d4ef4 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Wed, 23 Mar 2016 03:02:01 +1100 Subject: cmake-utils.eclass: check for ninja with ROOT=/ Gentoo-bug: 577244 --- eclass/cmake-utils.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/cmake-utils.eclass') diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 5f7bb8162d19..ebcb631b2dd3 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -242,7 +242,7 @@ _cmake_generator_to_use() { 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 + if ! ROOT=/ 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" -- cgit v1.2.3-65-gdbad