Skip to content

Commit

Permalink
cmake-utils.eclass: check for ninja with ROOT=/
Browse files Browse the repository at this point in the history
Gentoo-bug: 577244
  • Loading branch information
kensington committed Apr 2, 2016
1 parent 998de28 commit 385fc99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/cmake-utils.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 385fc99

Please sign in to comment.