Format.cmake directory path appears in the list of cmake-format arguments
TheLongRunSmoke opened this issue · 0 comments
TheLongRunSmoke commented
When Format.cmake used as submodule https://github.com/TheLartians/Format.cmake#using-git-submodules-not-suited-for-libraries its directory path appear in arguments that passed to cmake-format.
Traceback (most recent call last):
File ".../.local/bin/cmake-format", line 8, in <module>
sys.exit(main())
File ".../.local/lib/python3.8/site-packages/cmake_format/__main__.py", line 625, in main
return inner_main()
File ".../.local/lib/python3.8/site-packages/cmake_format/__main__.py", line 608, in inner_main
onefile_main(infile_path, args, argparse_dict)
File ".../.local/lib/python3.8/site-packages/cmake_format/__main__.py", line 512, in onefile_main
infile = io.open(
FileNotFoundError: [Errno 2] No such file or directory: 'Format.cmake'
How to reproduce:
- Include as submodule.
- Build any target, ex.
fix-format