From 3e8520a2a685346fafd77f5e352973ae6f23b4ef Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Thu, 19 Sep 2024 13:36:42 -0400 Subject: [PATCH] Link flatbuffers_shared to libsigmf if using system flatbuffers This is necessary, since otherwise includes for flatbuffers cannot be found and also the library cannot be linked --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ad72df..f23ab85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,6 +154,7 @@ target_include_directories(libsigmf INTERFACE if (${Flatbuffers_FOUND}) # System flatbuffers can import this target + target_link_libraries(libsigmf INTERFACE flatbuffers::flatbuffers_shared) else() target_include_directories(libsigmf INTERFACE $