compile flatbuffers on ubuntu 20.04

75 views
Skip to first unread message

giacomo ceremeletti

unread,
Sep 28, 2023, 5:57:09 AM9/28/23
to FlatBuffers
hi all,

i'm trying to compile flatbuffers on ubuntu 20.04.

I'm following this guide: https://flatbuffers.dev/flatbuffers_guide_building.html and following the "Building with CMake" section.

The compilation fails with the error:

-- Proceeding with version: 23.5.26.26
-- CMAKE_CXX_FLAGS:
CMake Error at CMakeLists.txt:562 (set_target_properties):
  INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "LINKER_LANGUAGE" is not allowed.


CMake Error at CMakeLists.txt:513 (target_sources):
  target_sources may only set INTERFACE properties on INTERFACE targets
Call Stack (most recent call first):
  CMakeLists.txt:564 (compile_schema_for_samples)

some one have any ideas?

cheers
Reply all
Reply to author
Forward
0 new messages