How to add_defines
on a specific file?
#3617
Answered
by
waruqi
davidchisnall
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidchisnall
-
Hey, How can I add two macros for a translation unit? Tried this one, but does not work. The two macros are combined as one single macro. add_files("src/*.c", {defines = "VALUE1=1, VALUE2=2"}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs for
add_defines
tell me how to do it at a target scope. If I have a target that builds multiple files and I want to add a define to some of those files but not all of them, how do I do that?Beta Was this translation helpful? Give feedback.
All reactions