codeql/misc/bazel/cmake
Cornelius Riemenschneider cff78cca5e Cmake generator: Remove space in argument.
This space breaks when upgrading bazelisk on Windows.
Somehow, a space inside the argument messes up some argument-parsin
somewhere. Porbably due to Windows argument parsing
being not well-defined in how it splits a string into argv.
Removing the space works around the problem.

If the space is included, cmake suddenly can't find the bazelisk
binary anymore, despite happily executing `info output_base` earlier.
2024-06-02 23:56:31 +02:00
..
BUILD.bazel Swift: cmake generator for better IDE support 2022-10-13 15:25:24 +02:00
README.md Bazel/CMake: fix typo in `README.md` 2022-10-24 14:19:11 +02:00
cmake.bzl Merge branch 'main' into redsun82/bazel-cmake 2024-02-29 14:28:00 +01:00
setup.cmake Cmake generator: Remove space in argument. 2024-06-02 23:56:31 +02:00

README.md

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.