Hi Brian,

I have noticed that warning in the past and I believe at that time it was fixed by adding LANGUAGES property explicit in the project() call in the root Mbed TLS CMakelists.txt, just before GnuInstallDirs is included. But for some reason this has come back and I have not been able to pinpoint the root cause. It is safe to say at this point that the warning is benign and has no impact whatsoever on the build. I will try to spend some more time on this if time permits.

Thanks, Antonio

From: Quach, Brian via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Friday, February 16, 2024 15:39
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] Unable to determine default CMAKE_INSTALL_LIBDIR directory
 

Hi,

 

I’m seeing this warning when running cmake from a conan pkg: `/home/brian/.conan/data/cmake/3.21.3-0/library-msp/ga/package/be241241e9d4718e5bab4eb33935bbb69606bb0c/bin/cmake -S . -B build -DTFM_PLATFORM=arm/mps2/an521`.    Does anyone know how to fix it?  I see the language is set by `project("Trusted Firmware M" VERSION ${TFM_VERSION} LANGUAGES C CXX ASM)`.

 

Per-partition files done:

CMake Warning (dev) at /home/brian/.conan/data/cmake/3.21.3-0/library-msp/ga/package/be241241e9d4718e5bab4eb33935bbb69606bb0c/share/cmake-3.21/Modules/GNUInstallDirs.cmake:236 (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):

  build/lib/ext/mbedcrypto-src/CMakeLists.txt:42 (include)

This warning is for project developers.  Use -Wno-dev to suppress it.

 

Regards,

 

Brian Quach

SimpleLink MCU

Texas Instruments Inc.

12500 TI Blvd, MS F-4000

Dallas, TX 75243

214-479-4076