Access CMSIS from library?

I want to include C:\Users\bobku\Documents\GitHub\RCBugfix-M43-and-spindle\frameworks\CMSIS\LPC1768\include\lpc17xx_pinsel.h from within C:\Users\bobku\Documents\GitHub\RCBugfix-M43-and-spindle.piolibdeps\U8glib-ARM_ID1691\src\lib\u8g.h

I can access both with no problems from within the src directory structure. In my case the src directory is named Marlin.

I’ve played with various permutations of lib_ldf_mode and lib_compat_mode along with every variation of #include and #include “abc” that I could think of. After 6 hours it’s time to seek help.

I’m using PlatformIO from within Atom.


Here’s my local hard drive layout:

My platform.ini:

src_dir = Marlin
envs_dir = .pioenvs
lib_dir = .piolib
libdeps_dir = .piolibdeps
env_default = megaatmega2560

lib_deps =
default_src_filter = +<*> -<src/config/examples>
platform = nxplpc
board_f_cpu = 100000000L
build_flags = !python Marlin/src/HAL/HAL_LPC1768/
src_build_flags = -Wall
build_unflags = -Wall
lib_ldf_mode = deep
lib_compat_mode = 2 
lib_extra_dirs = frameworks
lib_deps = CMSIS-LPC1768 , U8glib-ARM
extra_scripts = Marlin/src/HAL/HAL_LPC1768/
src_filter =
  ${common.default_src_filter} +<*/src/HAL/HAL_LPC1768>

My library dependency chart:

Collected 9 compatible libraries

Looking for dependencies…
Library Dependency Graph
|-- CMSIS-LPC1768 v0.0.0
|-- U8glib-ARM v1.18.1
|-- Adafruit NeoPixel v1.1.2
|-- LiquidTWI2
| |-- CMSIS-LPC1768 v0.0.0
|-- TMC2130Stepper v2.0.0
|-- TMC26XStepper
|-- LiquidCrystal_I2C
| |-- CMSIS-LPC1768 v0.0.0

Would you like to modify original library?