tiernemi / meson-sample-project

A sample project that uses the meson build system and integrates common c++ development tools.
MIT License
118 stars 25 forks source link

clang format: No such file or directory #2

Open kierun opened 5 years ago

kierun commented 5 years ago

Using this:

run_target('format',
  command : [
    'clang-format',
    '-i',
    '-style=file',
    project_sources,
    project_test_sources,
  ]
)

I get

[0/1] Running external command format.
No such file or directory
No such file or directory
No such file or directory
No such file or directory
No such file or directory
No such file or directory
No such file or directory
FAILED: meson-format 
/home/usr/.local/bin/meson --internal commandrunner /home/usr/repos/c++base /home/usr/repos/c++base/build '' /home/usr/.local/bin/meson clang-format -i -style=file MyClass.cpp wrapper.cpp main.cpp wheather_station.cpp gtest-all.cpp test_MyClass.cpp test_wrapper.cpp

Since the project_sources and project_test_sources do not have either the full path or a relative one.

tiernemi commented 5 years ago

I will investigate