compile_commands.json not generated when using cmake -H. -Bbuild syntax
I have set (CMAKE_EXPORT_COMPILE_COMMANDS ON) set in my CMakeLists.txt, if I invoke cmake using:
cmake -H. -Bbuild -GNinja
build/compile_commands.json is not generated, if I enter build and run
cmake .. again it is generated in the build dir. I do already have a compile_commands.json symlink in the parent dir of build (or CWD of -H -B.. command). The file should be generated in build/ anyway.