mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 18:00:01 +00:00
Update Building.md (#6473)
`cmake . -D FLATBUFFERS_CXX_FLAGS="Wno-error"` returns an error (file 'Wno-error' not found)
This commit is contained in:
@@ -45,7 +45,7 @@ It is possible to cancel `warnings as errors` flag at `cmake` configuration stag
|
|||||||
appended to the project-level `CMAKE_CXX_FLAGS` variable.
|
appended to the project-level `CMAKE_CXX_FLAGS` variable.
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
- GCC and Clang: `cmake . -D FLATBUFFERS_CXX_FLAGS="Wno-error"`
|
- GCC and Clang: `cmake . -D FLATBUFFERS_CXX_FLAGS="-Wno-error"`
|
||||||
- MSVC: `cmake . -D FLATBUFFERS_CXX_FLAGS="/WX-"`
|
- MSVC: `cmake . -D FLATBUFFERS_CXX_FLAGS="/WX-"`
|
||||||
- MSVC: `cmake . -D FLATBUFFERS_CXX_FLAGS="/Wv <compiler.version>"`
|
- MSVC: `cmake . -D FLATBUFFERS_CXX_FLAGS="/Wv <compiler.version>"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user