diff options
| author | Ha Thach <[email protected]> | 2023-08-07 11:14:04 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-07 11:14:04 +0700 |
| commit | accc3fd737236dfbebc5ff5cc35369770a88fc60 (patch) | |
| tree | 90048330328f0b8abf6fefeec1ba9e6f74339e76 /examples/device | |
| parent | 3db945283a694acd9df05df8fbcd13cdd3c819ca (diff) | |
| parent | 2021c6299789a3dd9bd239941d9316494205fe2f (diff) | |
Merge pull request #2151 from kilograham/rp2040_build_fixes
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/net_lwip_webserver/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt index 1e34428fe..a16b8bd71 100644 --- a/examples/device/net_lwip_webserver/CMakeLists.txt +++ b/examples/device/net_lwip_webserver/CMakeLists.txt @@ -2,15 +2,15 @@ cmake_minimum_required(VERSION 3.17) 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}) + set(LWIP ${TOP}/lib/lwip) if (NOT EXISTS ${LWIP}/src) - MESSAGE(WARNING "lib/lwip submodule not found, please run 'python tools/get_deps.py lib/lwip' to fetch it") + family_example_missing_dependency(${PROJECT} "lib/lwip") return() endif() -# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>) -family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR}) - project(${PROJECT} C CXX ASM) # Checks this example is valid for the family and initializes the project |
