-
Bit of a tricky one and somewhat lengthy, but only because I furnish below all the details I already uncovered, so we can avoid guesswork and have a clear detailed vantage =) My project uses this system-wide-installed (at my end, at least) lib "WickedEngine" that's built with cmake, and their own example program (from which that lib's users usually start coding) also has a cmake setup — but I went straight to Meson for mine (of course =), and it's correct enough to build successfully BUT it generates a (Again, the above codes build fine with Meson but clangd with the generated Well, the WickedEngine lib's example project's cmake setup doesn't by default generate any So I went looking for the differences between my Meson-generated
My uneducated hunch is that I should have So the questions:
My current project('mo', ['cpp', 'c'])
dep_wicked = dependency('WickedEngine', static: true)
lib_tmp = library('mo_hello', sources: ['mo_hello/mo_hello.cpp'])
executable(
'mo.exec',
link_with: [lib_tmp],
dependencies: [dep_wicked],
cpp_pch: 'pch/main.h',
sources: ['main.cpp', 'mo_app/mo_app.cpp', 'mo_gfx/mo_gfx.cpp'],
) Thanks in advance for your hunches on this one =) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
As a start, does it still fail if you add |
Beta Was this translation helpful? Give feedback.
-
Can you check by hand which of the differences (e.g. -DNDEBUG) are responsible for the error? |
Beta Was this translation helpful? Give feedback.
As a start, does it still fail if you add
include_type: 'system'
to thedependency
call?