folly: create explicit folly_headers library target

This commit is contained in:
Jake Hillion 2023-03-17 08:49:17 -07:00 committed by Jake Hillion
parent f10e8a7173
commit 00b52fca6f
2 changed files with 4 additions and 1 deletions

View File

@ -120,7 +120,9 @@ FetchContent_Declare(
GIT_TAG 8db54418e3ccdd97619ac8b69bb3702f82bb0f66
)
FetchContent_Populate(folly)
include_directories(SYSTEM ${folly_SOURCE_DIR})
add_library(folly_headers INTERFACE)
target_include_directories(folly_headers SYSTEM INTERFACE ${folly_SOURCE_DIR})
### bison & flex (for oid_parser)
find_package(BISON 3.5 REQUIRED)

View File

@ -31,6 +31,7 @@ target_link_libraries(codegen
Boost::headers
${Boost_LIBRARIES}
folly_headers
glog::glog
tomlplusplus::tomlplusplus
)