arduino-cmake / Arduino-CMake-NG

CMake-Based framework for Arduino platforms
MIT License
138 stars 39 forks source link

SD card library is not being found. #98

Open marthinwurer opened 4 years ago

marthinwurer commented 4 years ago

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 commented 4 years ago

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.