Skip to content

Commit 5bb39ec

Browse files
authored
fix(split): Conditionally build all split code (#2884)
Don't add the split CMake subdirectory unless the feature is enabled.
1 parent 147c340 commit 5bb39ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ target_sources_ifdef(CONFIG_ZMK_BATTERY_REPORTING app PRIVATE src/battery.c)
9696
target_sources_ifdef(CONFIG_ZMK_HID_INDICATORS app PRIVATE src/events/hid_indicators_changed.c)
9797

9898
target_sources_ifdef(CONFIG_ZMK_SPLIT app PRIVATE src/events/split_peripheral_status_changed.c)
99-
add_subdirectory(src/split)
99+
add_subdirectory_ifdef(CONFIG_ZMK_SPLIT src/split)
100100

101101
target_sources_ifdef(CONFIG_USB_DEVICE_STACK app PRIVATE src/usb.c)
102102
target_sources_ifdef(CONFIG_ZMK_USB app PRIVATE src/usb_hid.c)

0 commit comments

Comments
 (0)