"Unparsed-options" actually parsed by cmake -P
CMake 3.18 documentation says "Any options after -- are not parsed by CMake" in the section of "Run a Script", but it actually parses some options and causes weird error.
#18978 was talking about it.
Steps to reproduce
- Create a file
message (STATUS OK)
- Run command line
cmake -P test.cmake -- --version
CMake prints "OK".
The following result is gotten.
CMake Error at test.cmake:1 (message): Unknown CMake command "message". cmake version 3.18.0 CMake suite maintained and supported by Kitware (kitware.com/cmake).
To upload designs, you'll need to enable LFS. More information