Skip to content

Commit 553c47a

Browse files
vlilleboemswarowsky
authored andcommitted
[nrf noup] Fix version warning
Version check depends on upstream's tagging scheme which differs from NCS's Signed-off-by: Vidar Lillebø <[email protected]>
1 parent 0fa3c2a commit 553c47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ execute_process(COMMAND git describe --tags --always
1616
# In a repository cloned with --no-tags option TFM_VERSION_FULL will be a hash
1717
# only hence checking it for a tag format to accept as valid version.
1818

19-
string(FIND ${TFM_VERSION_FULL} "TF-M" TFM_TAG)
19+
string(FIND ${TFM_VERSION_FULL} "v" TFM_TAG)
2020
if(TFM_TAG EQUAL -1)
2121
set(TFM_VERSION_FULL v${TFM_VERSION_MANUAL})
2222
message(WARNING "Actual TF-M version is not available from Git repository. Settled to " ${TFM_VERSION_FULL})

0 commit comments

Comments
 (0)