not able to generate compile_commands.json on cmake 3.22.1

Issue resolved: I removed the other settings, deleted the build directory, and just used cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1. Not quite sure what the root issue was.