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 0907378 commit 2f0c668Copy full SHA for 2f0c668
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")
@@ -89,7 +89,7 @@ set(OSI_PROTO_FILES
89
90
protobuf_generate_cpp(PROTO_SRCS PROTO_HEADERS ${OSI_PROTO_FILES})
91
set(FLAT_HEADERS "")
92
-if(BUILD_FLATBUFFER)
+if(OSI_BUILD_FLATBUFFER)
93
set(FLAT_FBS "")
94
add_subdirectory("flatbuffers"
95
${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build
0 commit comments