https://bugs.kde.org/show_bug.cgi?id=465640

Morten Danielsen Volden <mvold...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mvold...@gmail.com

--- Comment #2 from Morten Danielsen Volden <mvold...@gmail.com> ---
The bug only affects Meson. It seems there is a difference between how meson
and cmake generates output for ninja.
So if I for example generate two projects with a similar structure, say
something like below for cmake:
.
├── CMakeLists.txt
├── main.cpp
└── subfolder
    ├── CMakeLists.txt
    └── test_stuff_cmake.cpp

And for meson something like this:
.
├── main.cpp
├── meson.build
└── subfolder
    ├── meson.build
    └── test_stuff.cpp

After building the respective projects, if I issue the command 'ninja -t
targets all' I can see that the the CMake project will have in the output:

subfolder/CMakeFiles/test_stuff_cmake.dir/test_stuff_cmake.cpp.o:
CXX_COMPILER__test_stuff_cmake_unscanned_Debug
subfolder/test_stuff_cmake: CXX_EXECUTABLE_LINKER__test_stuff_cmake_Debug
test_stuff_cmake: phony

Whereas the meson generated project does not have the last entry:

subfolder/test_stuff.p/test_stuff.cpp.o: cpp_COMPILER
subfolder/test_stuff: cpp_LINKER


That means kdevelop will succeed on building the dependent cmake target

> /usr/bin/ninja test_stuff_cmake

but fail on a similar meson target:

> /usr/bin/ninja test_stuff
ninja: error: unknown target 'test_stuff'
*** Failure: Exit code 1 ***

Will result in the error that is reported here.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to