bloomberg / clangmetatool

A framework for reusing code in Clang tools
https://bloomberg.github.io/clangmetatool/
Apache License 2.0
119 stars 25 forks source link

Request support for C language in top-level CMakeLists.txt #72

Closed ksromanov closed 2 years ago

ksromanov commented 2 years ago

There is a problem building clangmetatool with llvm14 — it requires C language enabled in CMake.

Describe your changes Add C language to the project command of the top-level CMakeLists.txt

Testing performed

clangmetatool was successfully rebuilt with llvm 12, llvm 13, and llvm 14.

Additional context

The build error without the patch

CMake Error at /opt/bb/share/cmake-3.24/Modules/Internal/CheckSourceCompiles.cmake:44 (message):
check_source_compiles: C: needs to be enabled before use.

See also https://github.com/llvm/llvm-project/issues/53950