diff --git a/foreign_cc/extensions.bzl b/foreign_cc/extensions.bzl index ca239241..9f221d72 100644 --- a/foreign_cc/extensions.bzl +++ b/foreign_cc/extensions.bzl @@ -29,7 +29,7 @@ def _init(module_ctx): } for mod in module_ctx.modules: - if not mod.is_root: + if mod.is_root: for toolchain in mod.tags.cmake: versions["cmake"] = toolchain.version