Skip to content

Commit 0298870

Browse files
committed
[PR 128] CMake: Fix error including generated protobuf headers
Error was: | CMake Error in core/storage/ipld/CMakeLists.txt: | Target "ipld_node_protobuf" | INTERFACE_INCLUDE_DIRECTORIES property contains path: | | "build/core/storage/ipld" | | which is prefixed in the build directory.
1 parent 95e0e04 commit 0298870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/storage/ipld/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_library(ipld_node_protobuf
1616
${PB_BUILD_DIR}/ipld_node.pb.h
1717
${PB_BUILD_DIR}/ipld_node.pb.cc
1818
)
19-
target_include_directories(ipld_node_protobuf PUBLIC ${PB_BUILD_DIR})
19+
target_include_directories(ipld_node_protobuf PUBLIC $<BUILD_INTERFACE:${PB_BUILD_DIR}>)
2020
target_link_libraries(ipld_node_protobuf
2121
protobuf::libprotobuf
2222
)

0 commit comments

Comments
 (0)