Fix cmake scoping issues with packaged SQLite#277
Fix cmake scoping issues with packaged SQLite#277SRombauts merged 3 commits intoSRombauts:masterfrom
Conversation
|
Never mind, ignore me. |
|
IIUC, I think it's still required. Private dependencies still need to be linked transitively when built as shared libs. So, the installed cmake still depends on sqlite3. |
|
Hello, thank you for this proposal. I think it's actually thé opposite that we want: users sometimes need to include sqlite.h themselves when they want access to any C function that is not wrapped here |
|
Okay, I was just going for consistency with how it worked already. I've reversed the private linking. |
|
Yes, I understand, no worries :) This CMake code has changed a lot recently, and a big part of its features are not tested. I am a strong believer that only the automatically tested features can be properly maintained! |
|
Any progress on this? |
|
Hey, thanks a lot for providing this; I am now going to finally give it a go! |
Linking against the packaged version of
sqlite3only added include paths when installed, not during build, due to being included asPRIVATE. I assume this was done becauseSQLiteCppusers shouldn't need to includesqlite.h, so I've also changedSQLiteCppto link privately tosqlite.Now
sqlitecorrectly propagates its include directory when linked, but it is not propagated to users linking againstSQLiteCpp. These changes are useful because internal and external sqlite now behave the same.