From 8a8b5cdc670e239046b241d8dde8799688a2de50 Mon Sep 17 00:00:00 2001 From: afiqzudinhadi Date: Mon, 22 Jun 2026 23:49:28 +0800 Subject: [PATCH] Fix: add ZMK app include dir to library (APPLICATION_SOURCE_DIR) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5338a3..b1ba002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,6 +218,8 @@ print(f'Stripped test blocks from {count} files') # Build everything as a Zephyr library for C++23. zephyr_library_named(javelin_steno) zephyr_library_sources(${JAVELIN_LIB_SRC} ${ZMK_BRIDGE_SRC}) + # ZMK app headers aren't inherited by libraries — add manually + zephyr_library_include_directories(${APPLICATION_SOURCE_DIR}/include) zephyr_library_compile_options( -std=gnu++23 -fno-exceptions