From 00b52fca6f752d0d3ad6842fe0c61cfcd5006821 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Fri, 17 Mar 2023 08:49:17 -0700 Subject: [PATCH] folly: create explicit folly_headers library target --- CMakeLists.txt | 4 +++- src/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 462d7d7..20c6885 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a1f53e6..c7a1335 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -31,6 +31,7 @@ target_link_libraries(codegen Boost::headers ${Boost_LIBRARIES} + folly_headers glog::glog tomlplusplus::tomlplusplus )