Skip to content

Commit d772a61

Browse files
runtime/CMakeLists.txt: Use target_include_directories
Otherwise, include directories are not propagated to targets calling target_link_libraries().
1 parent be12a1f commit d772a61

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/runtime/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
include_directories (
2-
"${PROJECT_SOURCE_DIR}/include"
3-
)
4-
51
add_library(flatccrt
62
builder.c
73
emitter.c
@@ -11,6 +7,9 @@ add_library(flatccrt
117
json_printer.c
128
)
139

10+
target_include_directories(flatccrt PUBLIC
11+
"${PROJECT_SOURCE_DIR}/include")
12+
1413
if (FLATCC_INSTALL)
1514
install(TARGETS flatccrt DESTINATION ${lib_dir})
1615
endif()

0 commit comments

Comments
 (0)