Conversation
|
Thanks for the PR! I am somewhat unsure about this change, as it would change the user experience on typos. Is there any use case, where the additional quoting causes significant problems (apart of convenience)? |
|
I think the issue is that it counter to how the compilers are using As for the use-case, this will allow to transparently pass the pre-compile flags from one target to the other, e.g. in the cmake: |
|
I agree, that it was probably counterintuitive to abuse What about an extra option to settle this? Something like |
|
Indeed that would work. I would add though that there should be a deprecation message and transition for |
|
OK, let's do the following:
I'd need some time, though, to implement it. |
- For backwards compatibility, -D will continue to be interpreted as Python expression until 4.0 - Introduced a temporary variable -d/--define-value-type to switch to the proper interpretation when set to `str` Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
e5075cf to
a2baf28
Compare
|
This is superseeded now by the merged PR #52 . If you need anything beyond that, let me know. |
This allows to pass
-DFOO=some_value