csv-parser icon indicating copy to clipboard operation
csv-parser copied to clipboard

FetchContent_Declare usage

Open hsdk123 opened this issue 5 years ago • 1 comments

Hi, it looks as if the headers inside the library aren't auto exposed when using FetchContent_Declare. This is a request to allow this to happen.

hsdk123 avatar Oct 21 '20 02:10 hsdk123

I'm currently doing something like this:

FetchContent_Declare(
        csv
        GIT_REPOSITORY https://github.com/vincentlaucsb/csv-parser
        GIT_TAG 2.1.0.1
        GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(csv)
include_directories(${csv_SOURCE_DIR}/single_include)

Not sure if that's the right way, but it works.

ncoder-1 avatar Jan 31 '21 15:01 ncoder-1