Skip to content

Commit

Permalink
Add docs for CMAKE_SH and data in cmakedeps (#2055)
Browse files Browse the repository at this point in the history
* Add docs for CMAKE_SH and data in cmakedeps

* remove note box
  • Loading branch information
danimtb committed Mar 30, 2021
1 parent ed74600 commit fe107d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions reference/conanfile/tools/cmake.rst
Expand Up @@ -13,8 +13,8 @@ CMakeDeps

Available since: `1.33.0 <https://github.com/conan-io/conan/releases/tag/1.33.0>`_

The ``CMakeDeps`` helper will generate one **xxxx-config.cmake** file per dependency, together with other necessary .cmake files
like version, or configuration. It can be used like:
The ``CMakeDeps`` helper will generate one **xxxx-config.cmake** file per dependency, together with other necessary *.cmake* files
like version, flags and directory data or configuration. It can be used like:


.. code-block:: python
Expand Down Expand Up @@ -231,6 +231,9 @@ when a package is being built directly by Conan (create, install)
cmake.configure()
cmake.build()
**Note:** This helper includes the additional flag `-DCMAKE_SH="CMAKE_SH-NOTFOUND"` when using the `MinGW Makefiles` CMake's
generator, to avoid the error of `sh` being in the PATH (CMake version < 3.17.0).

It supports the following methods:

constructor
Expand Down

0 comments on commit fe107d8

Please sign in to comment.