summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-03-23 03:02:01 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-04-03 01:50:43 +1100
commit385fc99384fe36e940a814545e9e85ccba2d4ef4 (patch)
tree21bfe1b36002353891eb7d5d12c0b59a7ceef595 /eclass/cmake-utils.eclass
parentmedia-sound/xmms2: backported samba detection fix (diff)
downloadgentoo-385fc99384fe36e940a814545e9e85ccba2d4ef4.tar.gz
gentoo-385fc99384fe36e940a814545e9e85ccba2d4ef4.tar.bz2
gentoo-385fc99384fe36e940a814545e9e85ccba2d4ef4.zip
cmake-utils.eclass: check for ninja with ROOT=/
Gentoo-bug: 577244
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass2
1 files changed, 1 insertions, 1 deletions
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"