summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2021-06-02 12:37:12 -0500
committergraham sanderson <[email protected]>2021-06-02 12:37:12 -0500
commitfea5cbaf74a033d3f0c462b6bf2d334a67f6a732 (patch)
treeb4559a09953669ba672b701da21e137935a15afd /examples/device
parentde436e1f766c136edaec298d11c55edd937678fe (diff)
fixed net_lwip_webserver cmake build
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/net_lwip_webserver/CMakeLists.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt
index b8d769c4e..f1f79b2d1 100644
--- a/examples/device/net_lwip_webserver/CMakeLists.txt
+++ b/examples/device/net_lwip_webserver/CMakeLists.txt
@@ -1,9 +1,9 @@
cmake_minimum_required(VERSION 3.5)
-if (EXISTS ${TOP}/lib/lwip/src)
- set(TOP "../../..")
- get_filename_component(TOP "${TOP}" REALPATH)
+set(TOP "../../..")
+get_filename_component(TOP "${TOP}" REALPATH)
+if (EXISTS ${TOP}/lib/lwip/src)
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
@@ -73,12 +73,9 @@ if (EXISTS ${TOP}/lib/lwip/src)
PBUF_POOL_SIZE=2
TCP_WND=2*TCP_MSS
HTTPD_USE_CUSTOM_FSDATA=0
- )
+ )
# Configure compilation flags and libraries for the example... see the corresponding function
# in hw/bsp/FAMILY/family.cmake for details.
family_configure_device_example(${PROJECT})
-endif()
-
-
-
+endif() \ No newline at end of file