Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Fix install target copying of SD hex/licence (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenr authored May 9, 2019
1 parent fd4388c commit 5a83e8a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,16 @@ foreach(SD_API_VER ${SD_API_VERS})
string(TOLOWER ${SD_API_VER} SD_API_VER_L)
set(CONNECTIVITY_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/hex/${SD_API_VER_L}")

set(HEX_FILE_GLOB "${CONNECTIVITY_DIRECTORY}/connectivity_${CONNECTIVITY_VERSION}*.hex")
set(HEX_FILE_GLOB
"${CONNECTIVITY_DIRECTORY}/connectivity_${CONNECTIVITY_VERSION}*.hex"
"${CONNECTIVITY_DIRECTORY}/*_softdevice.hex"
)
set(DFU_FILE_GLOB "${CONNECTIVITY_DIRECTORY}/connectivity_${CONNECTIVITY_VERSION}*.zip")
set(LICENSE_FILE_GLOB "${CONNECTIVITY_DIRECTORY}/*license-agreement.txt")

set(LICENSE_FILE_GLOB
"${CONNECTIVITY_DIRECTORY}/*licence-agreement.txt"
"${CONNECTIVITY_DIRECTORY}/*license-agreement.txt"
)

file(GLOB_RECURSE ${SD_API_VER}_HEX_FILES ${HEX_FILE_GLOB})
file(GLOB_RECURSE ${SD_API_VER}_DFU_FILES ${DFU_FILE_GLOB})
Expand Down

0 comments on commit 5a83e8a

Please sign in to comment.