Skip to content

Commit 2f0c668

Browse files
globberwopspmai
authored andcommitted
#550 Fix flatbuffers option
Signed-off-by: Martin Stump <11492152+globberwops@users.noreply.github.com>
1 parent 0907378 commit 2f0c668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project(open_simulation_interface)
66
set(CMAKE_CXX_STANDARD 11)
77

88
# Optional Flatbuffer support
9-
set(BUILD_FLATBUFFER OFF CACHE BOOLEAN "Build flatbuffer versions of libraries")
9+
option(OSI_BUILD_FLATBUFFER "Build flatbuffer versions of libraries" OFF)
1010

1111
# Set a default build type if none was specified
1212
set(default_build_type "Release")
@@ -89,7 +89,7 @@ set(OSI_PROTO_FILES
8989

9090
protobuf_generate_cpp(PROTO_SRCS PROTO_HEADERS ${OSI_PROTO_FILES})
9191
set(FLAT_HEADERS "")
92-
if(BUILD_FLATBUFFER)
92+
if(OSI_BUILD_FLATBUFFER)
9393
set(FLAT_FBS "")
9494
add_subdirectory("flatbuffers"
9595
${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build

0 commit comments

Comments
 (0)