mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 13:59:05 +00:00
[cmake] add OT_PRIVATE_DEFINES to platform lib build (#4636)
This commit is contained in:
@@ -61,7 +61,12 @@ target_link_libraries(openthread-cc2538 PRIVATE openthread-platform-utils)
|
||||
target_link_options(openthread-cc2538 PUBLIC -T${PROJECT_SOURCE_DIR}/examples/platforms/cc2538/cc2538.ld)
|
||||
target_link_options(openthread-cc2538 PUBLIC -Wl,-Map=$<TARGET_PROPERTY:NAME>.map)
|
||||
|
||||
target_compile_definitions(openthread-cc2538 PUBLIC ${OT_PLATFORM_DEFINES})
|
||||
target_compile_definitions(openthread-cc2538
|
||||
PUBLIC
|
||||
${OT_PLATFORM_DEFINES}
|
||||
PRIVATE
|
||||
${OT_PRIVATE_DEFINES}
|
||||
)
|
||||
|
||||
target_compile_options(openthread-cc2538 PRIVATE
|
||||
${OT_CFLAGS}
|
||||
|
||||
@@ -69,7 +69,12 @@ endif()
|
||||
|
||||
target_link_libraries(openthread-simulation PRIVATE openthread-platform-utils)
|
||||
|
||||
target_compile_definitions(openthread-simulation PUBLIC ${OT_PLATFORM_DEFINES})
|
||||
target_compile_definitions(openthread-simulation
|
||||
PUBLIC
|
||||
${OT_PLATFORM_DEFINES}
|
||||
PRIVATE
|
||||
${OT_PRIVATE_DEFINES}
|
||||
)
|
||||
|
||||
target_compile_options(openthread-simulation PRIVATE
|
||||
${OT_CFLAGS}
|
||||
|
||||
Reference in New Issue
Block a user