Ninja Generator: Include full path of includes into compile_commands.json
I am trying to use compile_commands.json
with emacs and Ninja Generator. The problem is, with the Ninja generator the paths of directories included by e.g.
include_directories(${CMAKE_CURRENT_BINARY_DIR})
based statements comes up with the relative path in compile_commands.json
instead of the full path. When using the Make Generator, the full path is inserted as expected.