volk icon indicating copy to clipboard operation
volk copied to clipboard

auto format cmake files

Open jdemel opened this issue 4 years ago • 2 comments

I suggest to use cmake_format to auto-format all our CMake files. cmake is often hard to read and having it at least formatted would ease this task. Of course, we'd need to decide on any particular style guide. etc.

jdemel avatar Dec 01 '20 14:12 jdemel

I'm not sure how well supported this tool is. I tried to install it and was not successful. There's more than one complaint about this in the cmake_format Github issues, and no response.

https://github.com/cheshirekow/cmake_format/issues/238

https://github.com/cheshirekow/cmake_format/issues/234

drmpeg avatar Dec 24 '20 19:12 drmpeg

I'm aware that this is not perfect. Unfortunately, it is the only tool I found that does CMake formatting. Of course, I'd be happy to use a better tool. Do you happen to know one?

jdemel avatar Dec 25 '20 10:12 jdemel

This is essentially the same Issue as #600 . Since GR used it, we might follow.

jdemel avatar Jan 15 '23 09:01 jdemel