We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Blocks
The documentation suggests, if you want to extend CMakeToolchain with custom blocks, you need to inherit from it. However, it cannot be imported:
CMakeToolchain
from conan.tools.cmake import CMakeToolchain, CMake, Block
fails with
ImportError: cannot import name 'Block' from 'conan.tools.cmake'
This can be fixed by adding it to the __init__.py (file)[https://github.com/conan-io/conan/blob/1.42.1/conan/tools/cmake/init.py].
__init__.py
The text was updated successfully, but these errors were encountered:
Yes, this is a bug, unittesting skipped it because of internal import.
For the external interface, probably it deserves a better, specific name, like CMakeToolchainBlock
Sorry, something went wrong.
Fixed in #10026, will be in 1.43
memsharded
Successfully merging a pull request may close this issue.
The documentation suggests, if you want to extend
CMakeToolchain
with custom blocks, you need to inherit from it.However, it cannot be imported:
fails with
This can be fixed by adding it to the
__init__.py
(file)[https://github.com/conan-io/conan/blob/1.42.1/conan/tools/cmake/init.py].Environment Details (include every applicable attribute)
The text was updated successfully, but these errors were encountered: