#tde-devs < 2024/05/15 > |
[02:25] | micheleC has joined |
[02:47] | micheleC has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[08:42] | SlavekB has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[09:35] | SlavekB has joined |
[09:57] | micheleC has joined |
[13:08] | akh: Question about linking a library when using cmake: |
[13:08] | akh: When I'm building code that calls functions in an external library (i.e. one under /lib) |
[13:08] | akh: the build succeeds (and the library is correctly linked) even though I don't explicitly |
[13:09] | akh: state that the library is required in any of the CMakeLists.txt files. |
[13:09] | akh: Is this automagically handled by tde_add_library? |
[14:07] | SlavekB has quit (Ping timeout: 260 seconds) |
[14:20] | SlavekB has joined |
[14:28] | micheleC: depends on the library. Some cmake shared target will include a number of "sub" libraries, so that is probably what is happening. Otherwise you would get a linker error if the library is required but not linked |
[14:48] | akh: In my case only my code is using the library, not any of the other code in the package (tdelibs to be specific). The included library is getting linked to the final .so but I have no idea why. |
[15:20] | akh: nevermind, it _was_ being included elsewhere (diked out that code from the CMakeList.txt and linking of my code failed; cmake's behaviour is now as I expected it would be) |
[15:24] | micheleC: (y) |
[15:24] | micheleC: for sure if it wasn't included, the linker would have complained :-) |
[15:25] | micheleC has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org) |
[18:10] | SlavekB has quit (Quit: TDE Kopete : https://trinitydesktop.org) |
[19:02] | SlavekB has joined |
[19:27] | akh: anyone online? |
#tde-devs < 2024/05/15 > |
© 2010-2024 Trinity Desktop Project