Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmaketoolchain extensibility #2085

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Apr 27, 2021

reference/conanfile/tools/cmake.rst Show resolved Hide resolved
reference/conanfile/tools/cmake.rst Show resolved Hide resolved
Comment on lines 260 to 270
# add a completely new block
def generate(self):
tc = CMakeToolchain(self)
# this could go to a python_requires
class MyBlock(Block):
template = "Hello {{myvar}}!!!"

def context(self):
return {"myvar": "World"}

tc.pre_blocks["mynewblock"] = MyBlock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repeated code, same case just above

@czoido czoido merged commit da5894e into conan-io:develop Apr 28, 2021
@memsharded memsharded deleted the feature/cmaketoolchain_extensibility branch April 28, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants