How to specify scope? #3051
Answered
by
waruqi
SineStriker
asked this question in
Q&A
How to specify scope?
#3051
-
CMake allows to specify the scope so that an option's visiblity varies with each target. target_compile_definitions(MY_LIB PRIVATE PRIVATE_MACRO)
target_compile_definitions(MY_LIB PUBLIC PUBLIC_MACRO)
target_link_libraries(MY_EXE PRIVATE MY_LIB) I don't know how to explictly specify the |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Nov 12, 2022
Replies: 1 comment
-
add_defines("xxx", {public = true}) 文档里有说明,找下 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SineStriker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add_defines("xxx", {public = true})
文档里有说明,找下