Skip to content

Commit

Permalink
Avoid building Ninja binary (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui authored Jun 10, 2022
1 parent 6f3e4db commit a583bb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ Poac requires the following compilers, tools, and libraries to build:
* requires security updates
* [`mitama-cpp-result`](https://github.com/LoliGothick/mitama-cpp-result): [`v9.3.0`](https://github.com/LoliGothick/mitama-cpp-result/releases/tag/v9.3.0) or later
* requires [this commit](https://github.com/LoliGothick/mitama-cpp-result/commit/ec7f22ae921f750b0115681623d0c06223737819)
* [`ninja`](https://github.com/ninja-build/ninja): [`v1.11.0`](https://github.com/ninja-build/ninja/releases/tag/v1.11.0) or later
* requires [this commit](https://github.com/ninja-build/ninja/commit/589f5b2497929a50a1c74786478cc6fea7a2e1c6)
* [`ninja`](https://github.com/ninja-build/ninja): [`57b8fee`](https://github.com/ninja-build/ninja/commit/57b8fee639a4290176086f3839c78bfc0d02c42b) or later
* requires [this commit](https://github.com/ninja-build/ninja/commit/57b8fee639a4290176086f3839c78bfc0d02c42b)
* [`spdlog`](https://github.com/gabime/spdlog): [`1.9.0`](https://github.com/gabime/spdlog/releases/tag/v1.9.0) or later
* [`structopt`](https://github.com/p-ranav/structopt): [`e9722d3`](https://github.com/p-ranav/structopt/commit/e9722d3c2b52cf751ebc1911b93d9649c4e365cc) or later
* requires [this commit](https://github.com/p-ranav/structopt/commit/e9722d3c2b52cf751ebc1911b93d9649c4e365cc)
Expand Down
4 changes: 3 additions & 1 deletion cmake/AddNinja.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ list(APPEND CMAKE_MESSAGE_INDENT " ")
FetchContent_Declare(
ninja
GIT_REPOSITORY https://github.com/ninja-build/ninja
GIT_TAG v1.11.0
GIT_TAG 1d4034f0ac2b5cfb809b5ab983d47c3cb2c78415
)

set(BUILD_TESTING OFF)
set(NINJA_BUILD_BINARY OFF)

FetchContent_MakeAvailable(ninja)

file(MAKE_DIRECTORY ${ninja_BINARY_DIR}/include)
Expand Down

0 comments on commit a583bb6

Please sign in to comment.