Skip to content

Commit 00b52fc

Browse files
committed
folly: create explicit folly_headers library target
1 parent f10e8a7 commit 00b52fc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ FetchContent_Declare(
120120
GIT_TAG 8db54418e3ccdd97619ac8b69bb3702f82bb0f66
121121
)
122122
FetchContent_Populate(folly)
123-
include_directories(SYSTEM ${folly_SOURCE_DIR})
123+
124+
add_library(folly_headers INTERFACE)
125+
target_include_directories(folly_headers SYSTEM INTERFACE ${folly_SOURCE_DIR})
124126

125127
### bison & flex (for oid_parser)
126128
find_package(BISON 3.5 REQUIRED)

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ target_link_libraries(codegen
3131

3232
Boost::headers
3333
${Boost_LIBRARIES}
34+
folly_headers
3435
glog::glog
3536
tomlplusplus::tomlplusplus
3637
)

0 commit comments

Comments
 (0)