如何在target(xxx) ~ target_end(xxx)之外设置target的属性? #6632
Answered
by
waruqi
nekomiya-kasane
asked this question in
Q&A
-
比如: target(my_bin)
....
target_end()
my_bin:add_defines(xxxx) -- << 这里非法 |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Jul 16, 2025
Replies: 3 comments 2 replies
-
rule |
Beta Was this translation helpful? Give feedback.
0 replies
-
加 my_bin: 这玩意干嘛,仔细看下文档,原本根域配置就是对所有 target 生效的。 target(my_bin)
....
target_end()
add_defines("xxxx") |
Beta Was this translation helpful? Give feedback.
1 reply
-
重新进入 target 域设置就行了,多个地方可以同时配置的,最后会叠加 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nekomiya-kasane
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
重新进入 target 域设置就行了,多个地方可以同时配置的,最后会叠加