tf-m: Silence harmless version warning

Silence harmless version warning for users that have tagged TF-M.

TF-M creates a very noisy warning when you tag it:

CMake Warning at cmake/version.cmake:28 (message):
  Actual TF-M version is not available from Git repository.  Settled to
  v2.0.0
Call Stack (most recent call first):
  CMakeLists.txt:22 (include)

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2024-03-01 15:17:50 +01:00 committed by Anas Nashif
parent fc72f696fe
commit 33786b55ab

View file

@ -264,6 +264,7 @@ if (CONFIG_BUILD_WITH_TFM)
-DCMAKE_BUILD_TYPE=${TFM_CMAKE_BUILD_TYPE} -DCMAKE_BUILD_TYPE=${TFM_CMAKE_BUILD_TYPE}
-DTFM_PLATFORM=${CONFIG_TFM_BOARD} -DTFM_PLATFORM=${CONFIG_TFM_BOARD}
-DCONFIG_TFM_BUILD_LOG_QUIET=ON -DCONFIG_TFM_BUILD_LOG_QUIET=ON
-DSILENCE_TFM_VERSION_WARNING=ON
-DCONFIG_TFM_MEMORY_USAGE_QUIET=OFF -DCONFIG_TFM_MEMORY_USAGE_QUIET=OFF
-DPython3_EXECUTABLE=${Python3_EXECUTABLE} -DPython3_EXECUTABLE=${Python3_EXECUTABLE}
${TFM_CMAKE_ARGS} ${TFM_CMAKE_ARGS}