Skip to content

Commit 2f2c7fb

Browse files
authored
Cmakelists: Generalise overlay path
1 parent 6ecbd9c commit 2f2c7fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/hello_arduino/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
set(DTC_OVERLAY_FILE $ENV{HOME}/zephyrproject/modules/lib/Arduino-Zephyr-API/variants/ARDUINO_NANO_33_BLE/arduino_nano_33_ble.overlay)
5+
+set(DTC_OVERLAY_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/variants/${BOARD}/${BOARD}.overlay)
66
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
77
project(hello_world)
88

99
target_sources(app PRIVATE src/app.cpp)
1010

11-
zephyr_compile_options(-Wno-unused-variable -Wno-comment)
11+
zephyr_compile_options(-Wno-unused-variable -Wno-comment)

0 commit comments

Comments
 (0)