Skip to content

mbedtls using ancient version of cmake directives that emits warnings about support being dropped #92679

@nordicjm

Description

@nordicjm

Describe the bug

Seen when configuring an application for a non-secure board target:

CMake Deprecation Warning at /tmp/aa/modules/crypto/mbedtls/CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

Zephyr has been using 3.20 as the minimum version for a long time, this needs fixing or is likely to just suddenly break for everyone in a future update.

Unrelated, but TFM also emits this:

CMake Warning (dev) at /usr/share/cmake/Modules/GNUInstallDirs.cmake:250 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  /tmp/aa/modules/crypto/mbedtls/CMakeLists.txt:52 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

which should probably be looked into

Regression

  • This is a regression.

Steps to reproduce

No response

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions