Hi,

when I updated from CMake 3.24.0 to the new (two weeks old) CMake 3.25.0 I am no longer
able to build TF-M with -DTEST_PSA_API=CRYPTO.

(Downgrading CMake fixes the issue)

Is there an interoperability issue with the latest CMake release and the TF-M build system?

Reproduced with
TF-Mv1.7.0-RC1
TF-Mv1.6.0

Steps to reproduce:

  1. install CMake 3.25.0.
  1. cd trusted-firmware-m
  1. rm -rf cmake_build && cmake -G Ninja -S . -B cmake_build -DTEST_PSA_API=CRYPTO  -DTFM_PLATFORM=nordic_nrf/nrf5340dk_nrf5340_cpuapp -DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake -DCMAKE_BUILD_TYPE=Debug && ninja -C cmake_build

Only reproduces with TEST_PSA_API and CMake 3.25.0. Builds fine with 3.24.0 or non-PSA API builds.

error:

  file INSTALL cannot find
  "/home/sebo/ncs/modules/tee/tf-m/trusted-firmware-m/cmake_build/tf-m-tests/app/psa_api_tests/src/psa_generate_database-build/target_database.h":
  No such file or directory.