cheshirekow / cmake_format

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

lint error for separate_arguments with one argument #218

Open tueda opened 4 years ago

tueda commented 4 years ago

As far as I understand, separate_arguments() accepts one argument (see the 2nd one in the reference), but

set(VAR "1 2 3")
separate_arguments(VAR)
message("${VAR}")

leads to a wrong complaint:

CMakeLists.txt:02,19: [E1120] Missing required positional argument