Replies: 1 comment
-
Bear is using subprojects. The main project is not compiling any files, therefore the compilation database is empty. Look into the CMake file in the root folder, and modify the part which calls the subproject, which compiles the sources. (Pass that flag in there.) Then you can find the report in the subproject build directory. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I add set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in the top CMakeLists.txt, but after building, there is no compile_commads.json file. Buiding platfrom as following:
uname -a
Linux allen-nuc 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Can anybody help?
Beta Was this translation helpful? Give feedback.
All reactions