cheshirekow / cmake_format

Source code formatter for cmake listfiles.
GNU General Public License v3.0
949 stars 104 forks source link

How to disable formating on comments #251

Closed ye-luo closed 3 years ago

ye-luo commented 3 years ago

Failed to find an option or a workaround. It will help adopt cmake-format on existing project a lot easier.

cheshirekow commented 3 years ago

I think you're looking for enable_markup: https://cmake-format.readthedocs.io/en/latest/configopts.html#enable-markup

ye-luo commented 3 years ago

Exactly. --enable-markup FALSE. Thank you!