Skip to content

Commit

Permalink
GetExternalCode: Use GIT_VERSION instead GIT_TAG to checkout branch/t…
Browse files Browse the repository at this point in the history
…ag/hash (#98)

* GetExternalCode: Use GIT_VERSION instead GIT_TAG to checkout branch/tag/hash

* GetExternalCode: Update Version info comment with more details
  • Loading branch information
HaseenaSainul authored Oct 15, 2021
1 parent 818ef55 commit c195b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DeviceIdentification/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ elseif (NEXUS_FOUND)
${DEVICEIDENTIFICATION_IMPLEMENTATION_PATH}/Nexus.cpp)
else()
include(GetExternalCode)
set(DEVICEIDENTIFICATION_IMPLEMENTATION_VERSION "master" CACHE STRING "DeviceIdentification implementation version")
set(DEVICEIDENTIFICATION_IMPLEMENTATION_VERSION "master" CACHE STRING "DeviceIdentification implementation version: commit_id_or_tag_or_branch_name")
set(DEVICEIDENTIFICATION_IMPLEMENTATION_REPOSITORY "https://code.rdkcentral.com/r/soc/broadcom/components/rdkcentral/thundernanoservices/DeviceIdentification" CACHE STRING "DeviceIdentification implementation repository")
GetExternalCode(
GIT_REPOSITORY ${DEVICEIDENTIFICATION_IMPLEMENTATION_REPOSITORY}
GIT_TAG ${DEVICEIDENTIFICATION_IMPLEMENTATION_VERSION}
GIT_VERSION ${DEVICEIDENTIFICATION_IMPLEMENTATION_VERSION}
SOURCE_DIR "Implementation/Nexus"
)
target_sources(${MODULE_NAME}
Expand Down

0 comments on commit c195b46

Please sign in to comment.