Files
codeql/misc/bazel/cmake
Paolo Tranquilli d1c63603ee refactor: migrate Starlark files to explicit rules_cc imports
Bazel 9 removes native.cc_* and CcInfo from global scope. Update:
- swift/rules.bzl: Add cc_binary, cc_library, CcInfo imports; use
  explicit cc_binary/cc_library instead of native.cc_*
- misc/bazel/cmake/cmake.bzl: Add CcInfo import for provider usage
2026-02-10 13:44:05 +01:00
..
2022-10-24 14:19:11 +02:00

This directory contains a Bazel to CMake generator intended mainly for IDE integration.

cmake.bzl contains the Bazel side, with the cmake_aspect rule gathering the necessary information from cc_* rules and generate_cmake translating that information into CMake commands. generate_cmake targets also depend on all files that are either generated or fetched from external repositories, so that Bazel will fill in those dependencies before letting CMake do the C/C++ compilation.

setup.cmake contains the generic CMake setup, setting up some Bazel related global variables and providing an include_generated macro to be used in CMakeLists.txt to include a specific generate_cmake Bazel target.

See Swift's CMakeLists.txt file for an example usage.