Skip to content

Instantly share code, notes, and snippets.

@mcrosson
Created December 31, 2020 16:35
Show Gist options
  • Save mcrosson/09e103b09d6caaa66962b3705fc9dd26 to your computer and use it in GitHub Desktop.
Save mcrosson/09e103b09d6caaa66962b3705fc9dd26 to your computer and use it in GitHub Desktop.
# 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