question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] sqlite3/all: how to use components to mimic findSQLite3 and imported target SQLite::SQLite3

See original GitHub issue

According to CMake documentation https://cmake.org/cmake/help/v3.14/module/FindSQLite3.html:

  • namespace of sqlite3 is SQLite (imported target is SQLite::SQLite3)
  • we have to use find_package(SQLite3)

conan components doesn’t seem to provide a way to handle this case.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jgsogocommented, Jul 6, 2020

This should be the last mile needed fo this transparent integration: https://github.com/conan-io/conan/issues/7254

And then something like

cpp_info.filename = `SQLite3`
cpp_info.names["cmake_find_package"] = `SQLite`
cpp_info.components["all"].names["cmake_find_package"] = `SQLite3`
0reactions
SpaceImcommented, Sep 15, 2020

This issue can be closed, sqlite3 recipe now properly mimics official sqlite3 imported target and module filename.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FindSQLite3 — CMake 3.25.1 Documentation
This module defines the following IMPORTED target: ... where to find sqlite3.h, etc. SQLite3_LIBRARIES. the libraries to link against to use SQLite3.
Read more >
In CMake, how can I find the imported target after calling ...
If I have a library, ABCD which I can get using find_package , provided CMake can locate a suitable ABCDConfig.cmake file. It then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found