Skip to content

Commit a8a6ebd

Browse files
committed
Fixed compilation issue introduced by 8402ca4 commit
1 parent 75d1249 commit a8a6ebd

File tree

1 file changed

+46
-11
lines changed

1 file changed

+46
-11
lines changed

src/mac/CMakeLists.txt

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ set_property(CACHE REGION_CN470_DEFAULT_CHANNEL_PLAN PROPERTY STRINGS ${REGION_C
5050
# Target
5151
#---------------------------------------------------------------------------------------
5252
set( MAC_BUILD_SOURCES
53-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionAS923.c
54-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionCN779.c
55-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionEU433.c
56-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionEU868.c
57-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionIN865.c
58-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionRU864.c
59-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionKR920.c
60-
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionBaseUS.c
6153
${CMAKE_CURRENT_SOURCE_DIR}/region/RegionCommon.c
6254
${CMAKE_CURRENT_SOURCE_DIR}/region/Region.c
6355
${CMAKE_CURRENT_SOURCE_DIR}/LoRaMac.c
@@ -69,10 +61,10 @@ set( MAC_BUILD_SOURCES
6961
${CMAKE_CURRENT_SOURCE_DIR}/LoRaMacParser.c
7062
${CMAKE_CURRENT_SOURCE_DIR}/LoRaMacSerializer.c )
7163

72-
if(REGION_US915 STREQUAL ON)
64+
if(REGION_AS923 STREQUAL ON)
7365
set( MAC_BUILD_SOURCES
74-
${MAC_BUILD_SOURCES}
75-
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionUS915.c" )
66+
${MAC_BUILD_SOURCES}
67+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionAS923.c" )
7668
endif()
7769

7870
if(REGION_AU915 STREQUAL ON)
@@ -91,6 +83,49 @@ set( MAC_BUILD_SOURCES
9183
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionCN470B26.c" )
9284
endif()
9385

86+
if(REGION_CN779 STREQUAL ON)
87+
set( MAC_BUILD_SOURCES
88+
${MAC_BUILD_SOURCES}
89+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionCN779.c" )
90+
endif()
91+
92+
if(REGION_EU433 STREQUAL ON)
93+
set( MAC_BUILD_SOURCES
94+
${MAC_BUILD_SOURCES}
95+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionEU433.c" )
96+
endif()
97+
98+
if(REGION_EU868 STREQUAL ON)
99+
set( MAC_BUILD_SOURCES
100+
${MAC_BUILD_SOURCES}
101+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionEU868.c" )
102+
endif()
103+
104+
if(REGION_IN865 STREQUAL ON)
105+
set( MAC_BUILD_SOURCES
106+
${MAC_BUILD_SOURCES}
107+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionIN865.c" )
108+
endif()
109+
110+
if(REGION_KR920 STREQUAL ON)
111+
set( MAC_BUILD_SOURCES
112+
${MAC_BUILD_SOURCES}
113+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionKR920.c" )
114+
endif()
115+
116+
if(REGION_RU864 STREQUAL ON)
117+
set( MAC_BUILD_SOURCES
118+
${MAC_BUILD_SOURCES}
119+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionRU864.c" )
120+
endif()
121+
122+
if(REGION_US915 STREQUAL ON)
123+
set( MAC_BUILD_SOURCES
124+
${MAC_BUILD_SOURCES}
125+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionBaseUS.c"
126+
"${CMAKE_CURRENT_SOURCE_DIR}/region/RegionUS915.c" )
127+
endif()
128+
94129
add_library(${PROJECT_NAME} OBJECT EXCLUDE_FROM_ALL ${MAC_BUILD_SOURCES})
95130

96131
# Loops through all regions and add compile time definitions for the enabled ones.

0 commit comments

Comments
 (0)