Lines Matching +full:cmake +full:- +full:version
4 ## Building with CMake
6 The distribution comes with a `cmake` file that should allow
7 you to build project/make files for any platform. For details on `cmake`, see
8 <https://www.cmake.org>. In brief, depending on your platform, use one of
11 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
12 cmake -G "Visual Studio 10" -DCMAKE_BUILD_TYPE=Release
13 cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release
19 `CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -G "Unix Makefiles"`.
34 By default all Flatbuffers `cmake` targets are build with `-Werror` flag.
36 Additionally `-Wall -pedantic -Wextra` (or `/W4` form MSVC) flags are set.
40 Usually, newer compiler versions add new compile-time diagnostics that were unavailable before.
41 These new diagnostic warnings could stop the build process if `-Werror` flag is set.
43 It is possible to cancel `warnings as errors` flag at `cmake` configuration stage using
45 appended to the project-level `CMAKE_CXX_FLAGS` variable.
48 - GCC and Clang: `cmake . -D FLATBUFFERS_CXX_FLAGS="-Wno-error"`
49 - MSVC: `cmake . -D FLATBUFFERS_CXX_FLAGS="/WX-"`
50 - MSVC: `cmake . -D FLATBUFFERS_CXX_FLAGS="/Wv <compiler.version>"`
59 ./bootstrap-vcpkg.sh
64 If the version is out of date, please [create an issue or pull request](https://github.com/Microsof…
92 ### Using in CMake-based projects
93 If you want to use FlatBuffers in a project which already uses CMake, then a more
96 and adding it using CMake's `add_subdirectory()` command. This has the
104 ```cmake
107 ${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build
111 # The flatbuffers target carry header search path automatically if CMake > 2.8.11.
120 ```cmake
128 This tracking is done automatically using the embedded version string
133 open source, you are free to remove the version string but we would appreciate