fix: A bug in afr_get_boards
Why:
When calling cmake from non-root dir, CMAKE_SOURCE_DIR will not be set
to AFR root but instead the path where cmake is invoked.
# Utilities
# -------------------------------------------------------------------------------------------------
function(afr_get_boards arg_boards)
- set(vendors_dir "${CMAKE_CURRENT_SOURCE_DIR}/cmake/vendors")
+ set(vendors_dir "${CMAKE_CURRENT_LIST_DIR}/cmake/vendors")
file(GLOB __vendors RELATIVE "${vendors_dir}" "${vendors_dir}/*")
foreach(__vendor IN LISTS __vendors)
file(GLOB __boards RELATIVE "${vendors_dir}/${__vendor}" "${vendors_dir}/${__vendor}/*")
