Skip to content

Commit

Permalink
[infra/onert] Make flatbuffers library static explicitly (Samsung#13960)
Browse files Browse the repository at this point in the history
This commit updates cmake script for flatbuffer library to make static library explicitly.
It prevents build regression from sometimes building shared library.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Sep 9, 2024
1 parent 78651e5 commit 9eba9be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function(_FlatBuffers_import)
list(APPEND FlatBuffers_Library_SRCS "${FlatBuffersSource_DIR}/src/util.cpp")

if(NOT TARGET flatbuffers::flatbuffers-23.5.26)
add_library(flatbuffers-23.5.26 ${FlatBuffers_Library_SRCS})
add_library(flatbuffers-23.5.26 STATIC ${FlatBuffers_Library_SRCS})
target_include_directories(flatbuffers-23.5.26 PUBLIC "${FlatBuffersSource_DIR}/include")
set_property(TARGET flatbuffers-23.5.26 PROPERTY POSITION_INDEPENDENT_CODE ON)
target_compile_options(flatbuffers-23.5.26 PUBLIC $<$<CONFIG:Debug>:-Wno-sign-compare>)
Expand Down

0 comments on commit 9eba9be

Please sign in to comment.