Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit f73c307

Browse files
committed
samples: threads: fix build errors
The CMakelists file did not specify the overlay and hence the nodes in the header files were nowhere to be found. This commit fixes the issue by adding the overlay file, and also adds other flags that help eliminate unused var warnings Signed-off-by: Dhruva Gole <goledhruva@gmail.com>
1 parent 438271d commit f73c307

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
cmake_minimum_required(VERSION 3.20.0)
4+
5+
set(DTC_OVERLAY_FILE $ENV{HOME}/zephyrproject/modules/lib/Arduino-Zephyr-API/variants/ARDUINO_NANO33BLE/arduino_nano_33_ble.overlay)
6+
47
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
58
project(threads)
69

710
target_sources(app PRIVATE src/main.cpp)
11+
zephyr_compile_options(-Wno-unused-variable -Wno-comment)

0 commit comments

Comments
 (0)