cheshirekow / cmake_format

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

[cmake-format] Issue with arguments that affect formatting #287

Open KindDragon opened 2 years ago

KindDragon commented 2 years ago

If we call cmake-format like that:

cmake-format file1.cmake file2.cmake -i --line-width=120 --tab-size=4

line-width and tab-size will be only applied to file1.cmake. file2.cmake will be formatted with default config

BTW cmake-format file1.cmake file2.cmake -i -c=.cmake-config work without this issue

KindDragon commented 2 years ago

It only happens when you pass several files to cmake-format