cheshirekow / cmake_format

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

Format: Keep target with command #231

Closed blackliner closed 3 years ago

blackliner commented 3 years ago

Is there a way to keep the target on the same line as the command?

  target_compile_definitions ( # the target should stay here
    ${_target}
    PRIVATE -DBUILD_TYPE_RELEASE=${BUILD_TYPE_RELEASE}
            -DBUILD_TYPE_PROFILE=$<BOOL:${PROFILE_MODE}>)
blackliner commented 3 years ago

Seems it is already been worked on: https://github.com/cheshirekow/cmake_format/issues/137