cheshirekow / cmake_format

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

[BUG] Duplicate PATTERN in install(DIRECTORY ...) command is not an error #208

Closed Mizux closed 4 years ago

Mizux commented 4 years ago

cmake-lint issue error [E1122] Duplicate keyword argument PATTERN where it shouldn't

see example in the doc:

install(DIRECTORY icons scripts/ DESTINATION share/myproj
  PATTERN "CVS" EXCLUDE
  PATTERN "scripts/*"
  PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
  GROUP_EXECUTE GROUP_READ)

ref: https://cmake.org/cmake/help/latest/command/install.html#directory