Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
target_include_directories(app boards/shields/pockettype)
-- Adding zmk-config shields directory
CMake Error at /workspaces/zmk-config/keyboards/zmk-config/config/CMakeLists.txt:4 (target_include_directories):
Cannot specify include directories for target "app" which is not built by
this project.
if (ZMK_CONFIG)
set(ENV{ZMK_CONFIG} "${ZMK_CONFIG}")
if(EXISTS ${ZMK_CONFIG}/boards)
message(STATUS "Adding ZMK config directory as board root: ${ZMK_CONFIG}")
list(APPEND BOARD_ROOT ${ZMK_CONFIG})
endif()
if(EXISTS ${ZMK_CONFIG}/dts)
message(STATUS "Adding ZMK config directory as DTS root: ${ZMK_CONFIG}")
list(APPEND DTS_ROOT ${ZMK_CONFIG})
endif()
if(EXISTS ${ZMK_CONFIG}/CMakeLists.txt)
message(STATUS "Adding zmk-config shields directory")
add_subdirectory(${ZMK_CONFIG} ${CMAKE_BINARY_DIR}/zmk_config)
endif()
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment