-
Notifications
You must be signed in to change notification settings - Fork 365
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
Documented cmaketoolchain:extra_variables (#16229) #3719
Documented cmaketoolchain:extra_variables (#16229) #3719
Conversation
|
||
conan install . -c "tools.cmake.cmaketoolchain:extra_variables*={'CMAKE_GENERATOR_INSTANCE': 'C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/'}" | ||
|
||
.. tip:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL! Can I get a pic of how this looks when built?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bcbb681
to
280a069
Compare
280a069
to
5e626a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dict is not very readable or didactical. I think an incremental approach, starting with a single {"MYCMAKEVAR": "Myvalue"}
is better:
- Simple complete use case of the
extra_variables
- Use something better than
STR
because that seems a type, not a variable name. - Single line that fits in the screen
Then explain the .cmake generated from it, and explain clearly that it is injected later so it can overwrite.
Then, finally, explain the advanced syntax, with the whole dict with the type, cache and docstring.
Co-authored-by: Rubén Rincón Blanco <rubenrb@jfrog.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better, thanks!
Added documentation for new
cmaketoolchain
optionextra_variables
Refers to: conan-io/conan#16242