Thanks. I'm interested if you've managed to build TFM using the visual studio generator? That check was actually added because we had a problem with at least one of the visual studio generators (VS10) setting the C compiler to `MSVC`. If you've managed to get it to build with VS16, then we can look in to adding that as a known good generator.
Raef
________________________________________ From: TF-M tf-m-bounces@lists.trustedfirmware.org on behalf of Kevin Kilzer via TF-M tf-m@lists.trustedfirmware.org Sent: 13 October 2020 15:30 To: tf-m@lists.trustedfirmware.org Subject: Re: [TF-M] Following the TF-M build example
Hi, Raef,
I added to the generator qualifier in CMakeLists.txt line 17. Since cmake is not my native language, I put in the full string, as you see. The string comes from the display of CMAKE_GENERATOR in the error message.
if(NOT ${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" AND NOT ${CMAKE_GENERATOR} STREQUAL "Visual Studio 16 2019" AND NOT ${CMAKE_GENERATOR} STREQUAL "Ninja") Message(FATAL_ERROR "Unsupported generator ${CMAKE_GENERATOR}. Hint: Try -G"Unix Makefiles"") endif()