I couldn’t quite figure out how to pass
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON to my openFrameworks in Linux in order to generate
compile_commands.json automatically. Should be a no-brainer, but I just can’t get it to work. I tried setting it in
config.make like so:
PROJECT_CFLAGS = -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
but this didn’t work…
Any pointers are most welcome!