Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
only build_require ninja if it is not in path
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier committed Jun 29, 2020
1 parent d504c30 commit d5610e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def build_requirements(self):
if not tools.which('pkg-config'):
self.build_requires('pkg-config_installer/0.29.2@bincrafters/stable')
if self.options.qtwebengine:
self.build_requires("ninja/1.10.0")
if not tools.which("ninja"):
self.build_requires("ninja/1.10.0")
# gperf, bison, flex, python >= 2.7.5 & < 3
if self.settings.os != "Windows":
if not tools.which("bison"):
Expand Down

0 comments on commit d5610e8

Please sign in to comment.