mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
net_lwip_webserver: allow TINYUSB_LWIP_PATH to be defined by parent CMake file
This commit is contained in:
parent
3804ab9a67
commit
23c9353cd8
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user