commit: 385fc99384fe36e940a814545e9e85ccba2d4ef4
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 22 16:02:01 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Apr 2 14:50:43 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=385fc993
cmake-utils.eclass: check for ninja with ROOT=/
Gentoo-bug: 577244
eclass/cmake-utils.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 5f7bb81..ebcb631 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"