Lines Matching +refs:cmake +refs:variables
11 `CMake <http://www.cmake.org/>`_ is a cross-platform build-generator tool. CMake
22 `Options and variables`_ section is a reference for customizing your build. If
36 #. `Download <http://www.cmake.org/cmake/resources/software.html>`_ and install
55 $ cmake path/to/llvm/source/root
59 for all build parameters. See the `Options and variables`_ section for
75 $ cmake --build .
77 The ``--build`` option tells ``cmake`` to invoke the underlying build
87 $ cmake --build . --target install
90 the ``--build`` option tells ``cmake`` to build the ``install`` target.
93 by invoking the ``cmake_install.cmake`` script generated in the
98 $ cmake -DCMAKE_INSTALL_PREFIX=/tmp/llvm -P cmake_install.cmake
110 online help accessible via the ``cmake`` executable itself. Execute ``cmake
123 $ cmake --help
128 you should enter them exactly as they are listed in the ``cmake --help``
134 $ cmake -G "Visual Studio 12" path/to/llvm/source/root
144 Explain variables and cache. Move explanation here from #options section.
146 .. _Options and variables:
148 Options and variables
152 variables, with possible values ON/OFF. Options and variables are defined on the
157 $ cmake -DVARIABLE=value path/to/llvm/source
164 $ cmake -UVARIABLE path/to/llvm/source
167 stored at the root of your build directory that is generated by ``cmake``.
176 $ cmake -DVARIABLE:TYPE=value path/to/llvm/source
178 Frequently-used CMake variables
181 Here are some of the CMake variables that are used often, along with a
183 CMake manual, or execute ``cmake --help-variable VARIABLE_NAME``.
205 .. _LLVM-specific variables: argument
207 LLVM-specific variables
250 cmake must be invoked before the build. Defaults to OFF.
327 location, you can also set the variables FFI_INCLUDE_DIR and
332 These variables specify the path to the source directory for the external
500 CMake variables passed on the command line. Clang provides a collection of CMake
507 $ cmake -C <path to cache file> <path to sources>
509 CMake cache scripts are processed in an isolated scope, only cached variables
510 remain set when the main configuration runs. CMake cached variables do not reset
511 variables that are already set unless the FORCE option is specified.
553 Also see the `LLVM-specific variables`_ section for variables used when
567 .. code-block:: cmake
575 message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
596 example) will look for the ``LLVMConfig.cmake`` file in various locations (see
597 cmake manual for details). It creates a ``LLVM_DIR`` cache entry to save the
598 directory where ``LLVMConfig.cmake`` is found or allows the user to specify the
599 directory (e.g. by passing ``-DLLVM_DIR=/usr/lib/cmake/llvm`` to
600 the ``cmake`` command or by setting it directly in ``ccmake`` or ``cmake-gui``).
604 * ``<INSTALL_PREFIX>/lib/cmake/llvm/LLVMConfig.cmake`` where
606 On Linux typically this is ``/usr/lib/cmake/llvm/LLVMConfig.cmake``.
608 * ``<LLVM_BUILD_ROOT>/lib/cmake/llvm/LLVMConfig.cmake`` where
618 The ``LLVMConfig.cmake`` file sets various useful variables. Notable variables
623 LLVMConfig.cmake).
679 .. code-block:: cmake
690 .. code-block:: cmake
702 .. code-block:: cmake
709 .. code-block:: cmake