Lines Matching +refs:cmake +refs:help +refs:command

11 `CMake <http://www.cmake.org/>`_ is a cross-platform build-generator tool. CMake
34 We use here the command-line, non-interactive CMake interface.
36 #. `Download <http://www.cmake.org/cmake/resources/software.html>`_ and install
50 #. Execute this command in the shell replacing `path/to/llvm/source/root` with
55 $ cmake path/to/llvm/source/root
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
111 --help`` for further help options.
114 or Xcode). If not specified on the command line, CMake tries to guess which
118 explicitly specify the generator with the command line option ``-G "Name of the
123 $ cmake --help
125 This will list the generator names at the end of the help text.
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
153 CMake command line like this:
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``.
172 variable and type on the CMake command line:
176 $ cmake -DVARIABLE:TYPE=value path/to/llvm/source
183 CMake manual, or execute ``cmake --help-variable VARIABLE_NAME``.
250 cmake must be invoked before the build. Defaults to OFF.
271 Add the ``-fPIC`` flag to the compiler command-line, if the compiler supports
367 Add ``-flto`` or ``-flto=`` flags to the compile and link command
418 through all the help files that you might have loaded. This option is only
500 CMake variables passed on the command line. Clang provides a collection of CMake
507 $ cmake -C <path to cache file> <path to sources>
515 - Order of command line arguments is important
523 - CMAKE_TOOLCHAIN_FILE is evaluated after both the cache file and the command
534 using Makefiles, execute this command in the root of your build directory:
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