Explain how to generate cmake flags db.

Relevant to Valloric/YouCompleteMe#1084