Arduino-CMake-NG icon indicating copy to clipboard operation
Arduino-CMake-NG copied to clipboard

SD card library is not being found.

Open marthinwurer opened this issue 5 years ago • 1 comments

I've tried to use the Arduino built-in SD card library. In my code, I have:

find_arduino_library(sd_lib SD ${board_id})

Which raises an error:

  Couldn't find library named Sd

I think it's somehow CamelCasing it, which is causing it to not find the actual path, libraries/SD/. The SPI library works fine, though, so it's a bit confusing.

marthinwurer avatar Feb 03 '20 22:02 marthinwurer

After some further perusing, it looks like the camelCasing was the issue. If there's no need for the libraries to be case-insensitive as the comment here states, then I really think that the camel-casing should be removed.

marthinwurer avatar Feb 06 '20 18:02 marthinwurer