How to select library when external dependency provides multiple #11298
|
In my project I use catch2, version 3. This library is built in two versions: with main, and without main. Meson builds both, but links my executable with libCatch2.a by default. I want to link with libCatch2Main.a. How can I instruct Meson to pick the other one? |
Replies: 3 comments
|
More info on how this is done in CMake, in case it would be somehow helpful: https://github.com/catchorg/Catch2/blob/devel/docs/cmake-integration.md
|
|
Catch2 provides a catch2-with-main.pc, so try |
|
It works. Thank you. |
Catch2 provides a catch2-with-main.pc, so try
dependency('catch2-with-main').