Lines Matching +refs:cmake +refs:variables

1 .. _module-pw_build-cmake:
19 This will install any required packages, generate cmake build files and invkoke ninja.
27cmake --fresh --debug-output -DCMAKE_MESSAGE_LOG_LEVEL=WARNING -S . -B ./out/cmake -G Ninja -DCMAK…
28 …19:37:10 INF [1/1] Run ==> ninja -C out/cmake pw_apps pw_run_tests.modules pw_run_tests.pw_bluetoo…
39 CMake convenience functions are defined in ``pw_build/pigweed.cmake``.
70 See ``pw_build/pigweed.cmake`` for the complete documentation of these
78 The CMake build uses CMake cache variables for configuring
79 :ref:`facades<docs-module-structure-facades>` and backends. Cache variables are
81 support multi-toolchain builds, so these variables have a single global value
85 ``<module_name>_BACKEND`` for each facade. Cache variables can be awkward to
87 persist accross CMake invocations. These variables should be set in one of the
91 ``$ENV{PW_ROOT}/backends.cmake``. This file will setup all the backend targets
99 target's toolchain file. The toolchain file is provided to ``cmake`` with
107 cmake -B out/cmake_host -S "$PW_ROOT" -G Ninja \
108 -DCMAKE_TOOLCHAIN_FILE=$PW_ROOT/pw_toolchain/host_clang/toolchain.cmake \
112 ``cmake-gui``.
119 CMake Error at pw_build/pigweed.cmake:257 (message):
123 pw_build/pigweed.cmake:238:EVAL:1 (_pw_target_link_targets_deferred_check)
129 In CMake, the toolchain is configured by setting CMake variables, as described
130 in the `CMake documentation <https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html>`_.
131 These variables are typically set in a toolchain CMake file passed to ``cmake``
132 with the ``-D`` option (``-DCMAKE_TOOLCHAIN_FILE=path/to/file.cmake``).
156 Third party variables are set like any other cache global variable in CMake. It
162 .. code-block:: cmake
170 cmake -B out/cmake_host -S "$PW_ROOT" -G Ninja \
171 -DCMAKE_TOOLCHAIN_FILE=$PW_ROOT/pw_toolchain/host_clang/toolchain.cmake \
174 * Set the variable interactively with ``ccmake`` or ``cmake-gui``.
176 .. _module-pw_build-existing-cmake-project:
183 .. code-block:: cmake
192 .. code-block:: cmake
200 - :bdg-ref-primary-line:`module-pw_protobuf_compiler-cmake`
201 - :bdg-ref-primary-line:`module-pw_unit_test-cmake`