• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:enable +full:- +full:werror

9 option(FLATBUFFERS_CODE_COVERAGE "Enable the code coverage build option." OFF)
10 option(FLATBUFFERS_BUILD_TESTS "Enable the build of tests and samples." ON)
11 option(FLATBUFFERS_INSTALL "Enable the installation of targets." ON)
12 option(FLATBUFFERS_BUILD_FLATLIB "Enable the build of the flatbuffers library"
14 option(FLATBUFFERS_BUILD_FLATC "Enable the build of the flatbuffers compiler"
16 option(FLATBUFFERS_STATIC_FLATC "Build flatbuffers compiler with -static flag"
18 option(FLATBUFFERS_BUILD_FLATHASH "Enable the build of flathash" ON)
19 option(FLATBUFFERS_BUILD_GRPCTEST "Enable the build of grpctest" OFF)
21 "Enable the build of the flatbuffers shared library"
26 "Add '-fsanitize' flags to 'flattests' and 'flatc' targets."
35 "Enable the build of c++17 test target. \"
39 "Run C++ code generator with '--cpp-std c++0x' switch."
42 "Enable precompile headers support for 'flatbuffers' and 'flatc'. \"
55 add_definitions(-DFLATBUFFERS_MAX_PARSING_DEPTH=${FLATBUFFERS_MAX_PARSING_DEPTH})
59 # Auto-detect locale-narrow 'strtod_l' and 'strtoull_l' functions.
73 add_definitions(-DFLATBUFFERS_LOCALE_INDEPENDENT=$<BOOL:${FLATBUFFERS_LOCALE_INDEPENDENT}>)
224 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
225 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wextra -Wno-unused-parameter")
226 set(FLATBUFFERS_PRIVATE_CXX_FLAGS "-Wold-style-cast")
230 "${CMAKE_CXX_FLAGS} -std=gnu++11")
233 "${CMAKE_CXX_FLAGS} -std=c++0x")
236 "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wextra -Werror=shadow")
237 set(FLATBUFFERS_PRIVATE_CXX_FLAGS "-Wold-style-cast")
241 "${CMAKE_CXX_FLAGS} -faligned-new -Werror=implicit-fallthrough=2")
244 …"${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parame…
250 "${CMAKE_CXX_FLAGS} -fsigned-char")
254 "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -pedantic -Werror -Wextra -Wno-unused-parameter")
255 set(FLATBUFFERS_PRIVATE_CXX_FLAGS "-Wold-style-cast")
257 …PPEND FLATBUFFERS_PRIVATE_CXX_FLAGS "-Wimplicit-fallthrough" "-Wextra-semi" "-Werror=unused-privat…
262 "${CMAKE_CXX_FLAGS} -stdlib=libc++")
267 "${CMAKE_EXE_LINKER_FLAGS} -lc++abi")
274 "${CMAKE_CXX_FLAGS} -fsigned-char")
282 # multi-core build.
294 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fprofile-arcs -ftest-coverage")
296 "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
311 # override default by user-defined sanitizer list
315 -g -fsigned-char -fno-omit-frame-pointer
316 "-fsanitize${_sanitizer_flags}")
318 "-fsanitize${_sanitizer_flags}")
370 target_link_libraries(flatc PRIVATE -static)
382 # - micro updated every release when there is no API/ABI changes
383 # - minor updated when there are additions in API/ABI
384 # - major (ABI number) updated when there are changes in ABI (or removals)
412 set(OPT ${OPT};--cpp-std c++0x)
414 # --cpp-std is defined by flatc default settings.
422 --cpp --gen-mutable --gen-object-api --reflect-names
423 --cpp-ptr-type flatbuffers::unique_ptr # Used to test with C++98 STLs
425 -I "${CMAKE_CURRENT_SOURCE_DIR}/tests/include_test"
426 -o "${SRC_FBS_DIR}"
434 compile_flatbuffers_schema_to_cpp_opt(${SRC_FBS} "--no-includes;--gen-compare")
445 -b --schema --bfbs-comments --bfbs-builtins
446 -I "${CMAKE_CURRENT_SOURCE_DIR}/tests/include_test"
447 -o "${SRC_FBS_DIR}"
456 set(OPT ${OPT};--cpp-std c++0x)
458 # --cpp-std is defined by flatc default settings.
467 --cpp --gen-mutable --gen-object-api --reflect-names
468 --cpp-ptr-type flatbuffers::unique_ptr # Used to test with C++98 STLs
470 --bfbs-comments --bfbs-builtins --bfbs-gen-embed
471 -I "${CMAKE_CURRENT_SOURCE_DIR}/tests/include_test"
472 -o "${SRC_FBS_DIR}"
483 # TODO Add (monster_test.fbs monsterdata_test.json)->monsterdata_test.mon
491 compile_flatbuffers_schema_to_cpp_opt(tests/arrays_test.fbs "--scoped-enums;--gen-compare")
493 …compile_flatbuffers_schema_to_embedded_binary(tests/monster_test.fbs "--no-includes;--gen-compare")
495 compile_flatbuffers_schema_to_cpp(tests/monster_extra.fbs) # Test floating-point NAN/INF.
536 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter -Wno-shadow")
656 # This target is sync-barrier.
657 # Other generate-dependent targets can depend on 'generated_code' only.