Skip to content

Commit

Permalink
Add cmake depedency to bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
rnburn authored and Johannes Tax committed Jul 7, 2020
1 parent fda54ee commit f3bb9b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ http_archive(
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")

rules_foreign_cc_dependencies([
"//bazel:built_cmake_toolchain",
])

http_archive(
Expand Down
10 changes: 10 additions & 0 deletions bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ config_setting(
name = "windows",
constraint_values = ["@bazel_tools//platforms:windows"],
)

toolchain(
name = "built_cmake_toolchain",
exec_compatible_with = [
"@bazel_tools//platforms:osx",
"@bazel_tools//platforms:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_cmake",
toolchain_type = "@rules_foreign_cc//tools/build_defs:cmake_toolchain",
)

0 comments on commit f3bb9b9

Please sign in to comment.