Link issues using meson on Windows #4642
Unanswered
mitchgrout
asked this question in
Q&A
Replies: 1 comment 3 replies
-
With cmake this results in any target linking against Slint::Slint to also link against Slint::slint-cpp. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get a basic slint project working within Meson instead of CMake. Meson is able to work with CMake projects, so it should be able to pick up on system-installed copies of slint, as these will be bundled with the relevant
.cmake
files. I've attached a minimal example here:Running
meson setup build
shows that meson is able to find the installation for slint (via the.cmake
files), but trying to build the target executable will fail linkage with...I would expect to see
-lslint_cpp
or similar appear in here, but it is absent which would explain the link errors. My understanding of CMake is not the best, but it appears thatSlintTargets.cmake
defines the library asINTERFACE
, i.e. header-only, meaning we won't get any linkage:The other libraries defined in
SlintTargets.cmake
(slint-cpp, slint-cpp-shared) are not detected by meson. My assumption is then that I should depend on these targets. Any advice on getting this working?Beta Was this translation helpful? Give feedback.
All reactions