• Home
  • Raw
  • Download

Lines Matching +full:cmake +full:- +full:unix

3 ## Building with CMake
6 [`cmake`](https://www.cmake.org) which allows you to build the project for any
11 Use `cmake` to configure a project based on your environment and platform.
13 === "Unix"
16 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
20 variables e.g. `CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -G "Unix
26 cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release
32 cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release
37 By default, `cmake` will configure targets to **not** build with strict warnings
38 on (e.g. `-Werror` or `/WX`). This may cause into issues when submitting code
42 `FLATBUFFERS_STRICT_MODE` cmake option.
44 ```cmake
45 cmake -DFLATBUFFERS_STRICT_MODE=ON
53 === "Unix"
56 make -j
68 xcodebuild -toolchain clang -configuration Release
82 curl -sL --fail https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd…
83 sudo apt install -y clang
85 curl -L https://download.swift.org/swift-${SWIFT_VERSION}-release/debian12/swift-${SWIFT_VERSION}-R…
86 CC=clang PATH=$PATH:$(pwd)/swift-${SWIFT_VERSION}-RELEASE-debian12/usr/bin bazel build //...
87 CC=clang PATH=$PATH:$(pwd)/swift-${SWIFT_VERSION}-RELEASE-debian12/usr/bin bazel test //...
98 ./bootstrap-vcpkg.sh
133 ### Using in CMake-based projects
134 If you want to use FlatBuffers in a project which already uses CMake, then a more
137 and adding it using CMake's `add_subdirectory()` command. This has the
145 ```cmake
148 ${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build
152 # The flatbuffers target carry header search path automatically if CMake > 2.8.11.
161 ```cmake
170 …/slsa.dev) using the OpenSSF's [slsa-framework/slsa-github-generator](https://github.com/slsa-fram…
171 …tall the verification tool from [slsa-framework/slsa-verifier#installation](https://github.com/sls…
175 $ slsa-verifier -artifact-path <downloaded.zip> -provenance attestation.intoto.jsonl -source github…