Replies: 3 comments 8 replies
-
|
It's not clear what's the problem also because the cppm_sources variable is not defined. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, sorry i should have provided the output. The cppm_sources is not defined right now, but it will be in the future. Iam very early in the development process at the moment. Output: The dockage.core.logger.cppm module needs to be compiled first for my code to link correctly, but meson is compiling it second. Ive set dore_dep as a dependencie under the impression that meson will build it first, but i was wrong. I also tried link_with but that didnt work either. |
Beta Was this translation helpful? Give feedback.
-
It is intended behavior for C or C++ programs, that compiling source code to object code can happen in parallel across libraries and executables. An executable doesn't need to compile against a library, only against the library's headers. It does need to link against the library, so meson enforces that order. You specifically mention C++20 modules though which act more like headers than like sources. Unfortunately, half a decade later compiler tooling for modules is still anemic (and uses the same compilation model as PCH, which is scary and also means no real sharing between targets). Modules support is still pretty experimental. The most recent release has some support for compiling std, though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
iam using meson for my project and i have a problem with meson wanting to compile the exe first before the dependencie it depends on. Does anyone know how to fix that?
meson.build
dockage-core/meson.build
dockage-cli/meson.build
Beta Was this translation helpful? Give feedback.
All reactions