Browse Source

Fixes for finding keymap directory.

xmkb
Pete Johanson 5 years ago
parent
commit
3b10e00d27
  1. 7
      cmake/keymap.cmake

7
cmake/keymap.cmake

@ -76,16 +76,13 @@ foreach(root ${BOARD_ROOT}) @@ -76,16 +76,13 @@ foreach(root ${BOARD_ROOT})
endif()
endforeach()
foreach(keymap_root ${KEYMAP_DIRS})
find_path(KEYMAP_DIR
NAMES ${KEYMAP}
PATHS ${keymap_root}/*/*
NAMES ${KEYMAP}/keymap.overlay
PATHS ${KEYMAP_DIRS}
NO_DEFAULT_PATH
)
if (KEYMAP_DIR)
message(STATUS "Using keymap directory: ${KEYMAP_DIR}/${KEYMAP}/")
set(DTC_OVERLAY_FILE ${KEYMAP_DIR}/${KEYMAP}/keymap.overlay)
break()
endif()
endforeach()

Loading…
Cancel
Save