Skip to content

Can I load the header with FetchContent? #49

@smaginmi

Description

@smaginmi

Is it possible to use FetchContent in my CMakeLists file to load the header into my build using the current layout of this project?
I could not get it to work.

This was my approach

include(FetchContent)

FetchContent_Declare(influxdb 
    GIT_REPOSITORY https://github.com/orca-zhang/influxdb-cpp
    GIT_TAG master
)

FetchContent_MakeAvailable(influxdb)

###
# followd by macro that includes the dep

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