Skip to content

Commit

Permalink
Update README to note that LORAMAC_SUFFIX must use FORCE override
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeehan1968 committed Mar 24, 2023
1 parent 526f05b commit a7a07e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions as-lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ endif()
set(LORAMAC_AS_LIB ON)
set(LORAMAC_RADIO sx1276)
set(LORAMAC_SUFFIX -Europe)
set(LORAMAC_SUFFIX -Europe CACHE STRING "" FORCE) # must force override
set(REGION_EU868 ON)
add_subdirectory(loramac_SOURCE_DIR loramac${LORAMAC_SUFFIX})
set(REGION_EU868 OFF) # NB: Override last pass
set(REGION_US915 ON)
set(LORAMAC_SUFFIX -US)
set(LORAMAC_SUFFIX -US CACHE STRING "" FORCE) # must force override
add_subdirectory(loramac_SOURCE_DIR loramac${LORAMAC_SUFFIX})
# You now have targets loramac-Europe and loramac-US to link to your own targets
Expand Down

0 comments on commit a7a07e8

Please sign in to comment.