Skip to content

sqlite3.h not found on Windows #1001

@sprkrd

Description

@sprkrd

Describe the bug

The sqlite3.h header is not found on Windows. Although I haven't tried, after taking a look at the CMakeLists.txt file and the conan_build.cmake file, I predict it won't be found also on Linux if SQLite3 is installed in a non-standard path (e.g. not /usr/include, /usr/local/include, etc).

How to Reproduce

Just try to build BT.CPP on Windows following the instructions for Conan. If you want to try on Linux (haven't done it myself), try to reproduce the build steps with sqlite3 in a non-standard path (i.e. a path the compiler doesn't search by default).

Proposed solution

Fortunately, I don't come just with a problem, but also with a solution :)

Fixing this issue is as easy as adding

list(APPEND BTCPP_EXTRA_INCLUDE_DIRS ${SQLite3_INCLUDE_DIRS})

after line 12 in conan_build.cmake. I can build BT.CPP just fine after that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions