lorawan: loramac-node: Use zephyr_library_compile_definitions_ifdef
Replace zephyr_compile_definitions_ifdef with zephyr_library_compile_definitions_ifdef to avoid setting options globally. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
committed by
Anas Nashif
parent
6595aaf280
commit
c4a5c5cc32
@@ -12,16 +12,16 @@ endif()
|
||||
# Add include path for local headers (lw_priv.h)
|
||||
zephyr_library_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_AS923 REGION_AS923)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_AU915 REGION_AU915)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_CN470 REGION_CN470)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_CN779 REGION_CN779)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_EU433 REGION_EU433)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_EU868 REGION_EU868)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_KR920 REGION_KR920)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_IN865 REGION_IN865)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_US915 REGION_US915)
|
||||
zephyr_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_RU864 REGION_RU864)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_AS923 REGION_AS923)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_AU915 REGION_AU915)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_CN470 REGION_CN470)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_CN779 REGION_CN779)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_EU433 REGION_EU433)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_EU868 REGION_EU868)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_KR920 REGION_KR920)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_IN865 REGION_IN865)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_US915 REGION_US915)
|
||||
zephyr_library_compile_definitions_ifdef(CONFIG_LORAWAN_REGION_RU864 REGION_RU864)
|
||||
|
||||
# Don't build the real implementation when the emulator is used
|
||||
if(NOT CONFIG_LORAWAN_EMUL)
|
||||
|
||||
Reference in New Issue
Block a user