Skip to content

Commit 6d82e72

Browse files
committed
[nrf noup] Remove version mismatch CMake warning
Get rid of the CMake warning which happens when `TFM_VERSION_MANUAL` mismatches `TFM_VERSION_FULL`. The latter is obtained with Git tags, which cannot be relied on in NCS. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 030c94c commit 6d82e72

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

cmake/version.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@ string(REGEX REPLACE "TF-M" "" TFM_VERSION_FULL ${TFM_VERSION_FULL})
2525
# remove a commit number
2626
string(REGEX REPLACE "-[0-9]+-g" "+" TFM_VERSION_FULL ${TFM_VERSION_FULL})
2727
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" TFM_VERSION ${TFM_VERSION_FULL})
28-
29-
# Check that manually set version is up to date
30-
if (NOT TFM_VERSION_MANUAL STREQUAL TFM_VERSION)
31-
message(WARNING "TFM_VERSION_MANUAL mismatches to actual TF-M version. Please update TFM_VERSION_MANUAL in cmake/version.cmake")
32-
endif()

0 commit comments

Comments
 (0)