Skip to content

It is not possible to include headers when compiling as a dependent project. #191

@Pichas

Description

@Pichas

Cannot include <sqlite3.h>, <sqlite3mc.h>... headers when compile as dependency.

My cmake file

option(SQLITE3MC_STATIC "Build SQLITE3MC as a static library" ON)
option(SQLITE3MC_BUILD_SHELL "Builds the SQLITE3MC Shell" OFF)
add_subdirectory(SQLite3MultipleCiphers)

add_executable(Proj main.cpp)
target_link_libraries(Proj PRIVATE sqlite3mc_static)

Proposed solution:

Make ${SQLITE3MC_INCLUDEDIRS} as public include directory or add a new option to expose headers

# L306
- target_include_directories(${SQLITE3MC_TARGET} PRIVATE
+target_include_directories(${SQLITE3MC_TARGET} PUBLIC
  ${SQLITE3MC_INCLUDEDIRS}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions