You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Enable output of compile commands during generation. If enabled, generates a compile_commands.json file containing the exact compiler calls for all translation units of the project in machine-readable form. This can be consumed by various IDEs and static analysers to provide smarter project diagnostics/completions etc.
13
+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
14
+
15
+
# https://stackoverflow.com/a/67410042
16
+
# Create a symlink to compile_commands.json located in CMAKE_BINARY_DIR to the project root (works across filesystems)
17
+
execute_process(
18
+
COMMAND${CMAKE_COMMAND} -E create_symlink
19
+
${CMAKE_BINARY_DIR}/compile_commands.json
20
+
${CMAKE_SOURCE_DIR}/compile_commands.json)
3
21
4
22
# Location of extra cmake includes for the project
0 commit comments