Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: format PRIVATE/PUBLIC/INTERFACE entries with constant indentation #378

Closed
reddwarf69 opened this issue May 24, 2020 · 2 comments

Comments

@reddwarf69
Copy link
Contributor

reddwarf69 commented May 24, 2020

I have been formatting my PRIVATE/PUBLIC/INTERFACE commands like this

target_link_libraries(
    targetA
    INTERFACE
        targetB
        targetC
    PUBLIC
        targetD
        targetE
)

I would not mind if it were

target_link_libraries(targetA
    INTERFACE
        targetB
        targetC
    PUBLIC
        targetD
        targetE
)

But I really like:
a) Always a single dependency by line
b) The constant indentation level of targetB and targetD, even if they are under specifiers (INTERFACE and PUBLIC) with different lengths.

After playing with the configuration file I have not seen any option to allow this. Would it be possible to make cmake-format format like this?

@onqtam
Copy link
Member

onqtam commented May 25, 2020

Is it possible that this issue was directed at a different repository? :)

@reddwarf69
Copy link
Contributor Author

Ups -> cheshirekow/cmake_format#206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants