CMake error with FreeRTOS-Plus-FAT when configuring

Hello,

I have a FreeRTOS + FreeRTOS-Plus-FAT project that I try to generate using CMake. At the configuration step, CMake throw the following error

CMake Error at Middlewares/FreeRTOS-Plus-FAT/portable/CMakeLists.txt:36 (add_library):
  No SOURCES given to target: freertos_plus_fat_port

CMake Generate step failed.  Build files cannot be regenerated correctly.

The FreeRTOS-Plus-FAT/portable/CMakeLists.txt line 36 is:

add_library( freertos_plus_fat_port STATIC )

Looking at CMake documentation, is seems that it is not possible to call add_library without sources, except for INTERFACE. So the error seems “normal”. So what is wrong in the CMakeLists.txt file

It seems a so “big” error that maybe I am missing something. Any idea?

Thanks for your help
Antoine

Hi! Thanks for bringing this issue up. Could you provide some source code/directory structure/link to your code? Thanks!

Hi @AntoineN,

Looking into the issue, I am assuming you are trying to run this on a Windows machine (as it should work on Linux). It seems like the Windows port was missed when creating the CMakeLists. I will try to fix this and put out a PR.

Let me know if this is not your issue.

Best,

Jason Carroll