summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-07-19 21:33:50 +0700
committerGitHub <[email protected]>2024-07-19 21:33:50 +0700
commite9f9d43d67804dc853cd064e8c0e204f2758731f (patch)
tree70e7bd203f8e9d3a0bd9a711ebf161cd5c71d61c /examples/device
parent9a418317f38a818bd20e8b0a25bb837b0c3c7491 (diff)
parent31a979a6cccc2d4dc0a86474643710ae3b7f34fe (diff)
Merge pull request #2723 from liamfraser/rp2040_tweaks
RP2040 tweaks
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/net_lwip_webserver/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt
index c39fd32c5..13923b583 100644
--- a/examples/device/net_lwip_webserver/CMakeLists.txt
+++ b/examples/device/net_lwip_webserver/CMakeLists.txt
@@ -5,7 +5,14 @@ include(${CMAKE_CURRENT_LIST_DIR}/../../../hw/bsp/family_support.cmake)
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})
+# Prefer the tinyusb lwip
set(LWIP ${TOP}/lib/lwip)
+
+# If we can't find one from tinyusb then check cmake var before giving up
+if (NOT EXISTS ${LWIP}/src)
+ set(LWIP ${TINYUSB_LWIP_PATH})
+endif()
+
if (NOT EXISTS ${LWIP}/src)
family_example_missing_dependency(${PROJECT} "lib/lwip")
return()