We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aae7d4 commit 0255c82Copy full SHA for 0255c82
CMakeLists.txt
@@ -6,7 +6,7 @@ project(open_simulation_interface)
6
set(CMAKE_CXX_STANDARD 11)
7
8
# Optional Flatbuffer support
9
-set(BUILD_FLATBUFFER OFF CACHE BOOLEAN "Build flatbuffer versions of libraries")
+option(OSI_BUILD_FLATBUFFER "Build flatbuffer versions of libraries" OFF)
10
11
# Set a default build type if none was specified
12
set(default_build_type "Release")
@@ -87,7 +87,7 @@ set(OSI_PROTO_FILES
87
88
protobuf_generate_cpp(PROTO_SRCS PROTO_HEADERS ${OSI_PROTO_FILES})
89
set(FLAT_HEADERS "")
90
-if(BUILD_FLATBUFFER)
+if(OSI_BUILD_FLATBUFFER)
91
set(FLAT_FBS "")
92
add_subdirectory("flatbuffers"
93
${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build
0 commit comments