MaciejPatro / cmake-tidy

Project provides a set of tools that will ease the development process for code written in CMake.
MIT License
16 stars 0 forks source link

force commands in single lines option #71

Closed MaciejPatro closed 4 years ago

MaciejPatro commented 4 years ago
                add_custom_target(${target}-resources
                        ALL
                        COMMAND
                                ${CMAKE_COMMAND}
                                -E
                                echo
                                "Copy resource files for ${target}"
                        COMMAND
                                attrib
                                "${RC_OUTPUT_DIR}/*.*"
                                -R
                                /S
                                /D
                        SOURCES
                                "${RC_SOURCES}"
                )

should be possible to configure as such:

                add_custom_target(${target}-resources
                        ALL
                        COMMAND
                                ${CMAKE_COMMAND}  -E echo "Copy resource files for ${target}"
                        COMMAND
                                attrib "${RC_OUTPUT_DIR}/*.*" -R /S /D
                        SOURCES
                                "${RC_SOURCES}"
                )