docs icon indicating copy to clipboard operation
docs copied to clipboard

No generators explanation for conan.tools.cmake.CMakeToolchain initialiser

Open foundry-markf opened this issue 3 years ago • 0 comments

The docs here

https://github.com/conan-io/docs/blob/develop/reference/conanfile/tools/cmake/cmaketoolchain.rst#constructor

says

constructor def init(self, conanfile, generator=None): conanfile: the current recipe object. Always use self. namespace: this argument avoids collisions when you have multiple toolchain calls in the same recipe. By setting this argument, the conanbuild.conf file used to pass information to the build helper will be named as: _conanbuild.conf. The default value is None meaning that the name of the generated file is conanbuild.conf. This namespace must be also set with the same value in the constructor of the CMake build helper so that it reads the information from the proper file.

but the 2nd arg is generator, not namespace,

foundry-markf avatar Nov 15 '21 16:11 foundry-markf