Change default of CMAKE_EXPORT_COMPILE_COMMANDS to YES
I think it would be a good idea to create a
compile_commands.json by default when a compatible generator is used (Make or Ninja). The
compile_commands.json file is becoming the standard way of language servers (https://github.com/cquery-project/cquery/wiki/Compilation-database#cmake) and tools like
clang-tidy to know include paths, flags, etc.
Currently it's a bit cumbersome having to remember to set the variable every time one generates a new project.