-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[package] cmake does not build without... cmake #4334
Comments
Yes, that is more a missing feature than a bug. I think the way to go is to add an option What I think should be avoided is dynamically flipping Where I'm not entirely sure yet is if |
If someone wants to pick this up I would appreciate it, if not I will eventually come back to this as it ties in with my work at conan-io/conan-docker-tools#241 and a few other things |
How about the following? options = {
`bootstrap`: [True, False, "auto"],
}
default_options = {
`bootstrap`: "auto",
}
def configure(self):
if self.options.bootstrap == "auto":
self.options.bootstrap = tools.which("cmake") is None The |
I created a PR for the bootstrap functionality at #11996. |
* cmake: clean up whitespace * cmake: prepare for conan v2 * cmake: add bootstrap option See #4334
The option |
Implemented by #11996 |
While trying #2463 on my raspi2,
I added
cmake/3.19.2
to the build requirements of the default recipe.Building it fails with the following error because I didn't have cmake installed on my system.
Of course
apt-get install cmake
works, but that might not always be the case.I think the
cmake
conan package should be the only package that can expectcmake
to not be present on the system.Conan profile
Steps to reproduce (Include if Applicable)
Logs (Include/Attach if Applicable)
conan install cmake/3.19.2@ --build missing
The text was updated successfully, but these errors were encountered: