Skip to content

Commit

Permalink
add cli_args (#2822)
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Nov 28, 2022
1 parent df3aef8 commit 75efd4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reference/conanfile/tools/cmake/cmake.rst
Expand Up @@ -62,14 +62,15 @@ configure()

.. code:: python
def configure(self, variables=None, build_script_folder=None):
def configure(self, variables=None, build_script_folder=None, cli_args=None):
Reads the ``CMakePresets.json`` file generated by the :ref:`CMakeToolchain<conan-cmake-toolchain>` to get:

- The generator, to append ``-G="xxx"``.
- The path to the toolchain and append ``-DCMAKE_TOOLCHAIN_FILE=/path/conan_toolchain.cmake``
- The declared ``cache variables`` and append ``-Dxxx``.
- ``build_script_folder``: Relative path to the folder containing the root *CMakeLists.txt*
- ``cli_args``: List of extra arguments provided when calling to CMake.

and call ``cmake``.

Expand Down

0 comments on commit 75efd4c

Please sign in to comment.