From 7f47718b6df1ee40777a9d6bd192eae0ec1c4bb2 Mon Sep 17 00:00:00 2001 From: Arnaud LE CAM Date: Fri, 19 Feb 2021 04:51:41 +0100 Subject: [PATCH] Update Building.md (#6473) `cmake . -D FLATBUFFERS_CXX_FLAGS="Wno-error"` returns an error (file 'Wno-error' not found) --- docs/source/Building.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/Building.md b/docs/source/Building.md index 57acbd54a..cc69f4840 100644 --- a/docs/source/Building.md +++ b/docs/source/Building.md @@ -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. 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="/Wv "`