Lines Matching +refs:cmake +refs:help +refs:variable

22 The official CMake language references is available in the cmake-language
23 manpage and `cmake-language online documentation
24 <https://cmake.org/cmake/help/v3.4/manual/cmake-language.7.html>`_.
55 .. code-block:: cmake
65 .. code-block:: cmake
81 strings throughout evaluation. Wrapping a variable in ``${}`` dereferences it
83 this as "variable evaluation" in their documentation. Dereferences are performed
91 .. code-block:: cmake
97 Dereferencing an unset variable results in an empty expansion. It is a common
99 code paths that the variable isn't set. There are examples of this throughout
102 An example of variable empty expansion is:
104 .. code-block:: cmake
111 In this example the ``extra_sources`` variable is only defined if you're
115 One big "Gotcha" with variable dereferencing is that ``if`` commands implicitly
118 .. code-block:: cmake
127 .. code-block:: cmake
131 This works because while ``MSVC`` is a defined variable, ``xMSVC`` is not. This
138 CMake policies please see the cmake-policies manpage or the `cmake-policies
140 <https://cmake.org/cmake/help/v3.4/manual/cmake-policies.7.html>`_.
149 .. code-block:: cmake
163 make a list of variable names that refer to other lists. For example:
165 .. code-block:: cmake
175 .. code-block:: cmake
189 flags options, which CMake refers to using the following variable expansions:
196 associated with them. The variable's type is used by CMake's UI tool to display
197 the right input field. The variable's type generally doesn't impact evaluation.
201 <https://cmake.org/cmake/help/v3.5/command/set.html#set-cache-entry>`_.
206 CMake inherently has a directory-based scoping. Setting a variable in a
207 CMakeLists file, will set the variable for that file, and all subdirectories.
211 When a variable that is already set is set again in a subdirectory it overrides
215 variable into the parent scope, and not the current scope. The CACHE option sets
216 the variable in the CMakeCache, which results in it being set in all scopes. The
217 CACHE option will not set a variable that already exists in the CACHE unless the
241 `here <https://cmake.org/cmake/help/v3.4/command/if.html>`_. That resource is
246 .. code-block:: cmake
265 .. code-block:: cmake
271 The variable argument portion of the ``foreach`` block can contain dereferenced
274 .. code-block:: cmake
305 .. code-block:: cmake
365 variable argument. If the command has named arguments they are required and must
369 .. code-block:: cmake
377 all trailing arguments. When variable arguments are present CMake defines them
384 ``cmake-modules`` manpage, and is also available at the
385 `cmake-modules online documentation
386 <https://cmake.org/cmake/help/v3.4/module/CMakeParseArguments.html>`_.
407 .. code-block:: cmake
440 all defined in ``AddLLVM.cmake`` which is installed as part of the LLVM
457 * `add_custom_command <https://cmake.org/cmake/help/v3.4/command/add_custom_command.html>`_
458 * `add_custom_target <https://cmake.org/cmake/help/v3.4/command/add_custom_target.html>`_
459 * `file <https://cmake.org/cmake/help/v3.4/command/file.html>`_
460 * `list <https://cmake.org/cmake/help/v3.4/command/list.html>`_
461 * `math <https://cmake.org/cmake/help/v3.4/command/math.html>`_
462 * `string <https://cmake.org/cmake/help/v3.4/command/string.html>`_
464 The full documentation for CMake commands is in the ``cmake-commands`` manpage
465 and available on `CMake's website <https://cmake.org/cmake/help/v3.4/manual/cmake-commands.7.html>`_