From 224cb8821272bf0f6777173fad184b41488ec5e2 Mon Sep 17 00:00:00 2001 From: Shawn Carey Date: Tue, 26 Nov 2024 18:44:27 -0500 Subject: [PATCH] go back to using lwip-contrib project (#1050) --- deps/CMakeLists.txt | 6 ++++++ lib/ziti-tunnel/CMakeLists.txt | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 6ad69d4ad..a54057311 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -24,3 +24,9 @@ FetchContent_Declare(lwip SOURCE_SUBDIR dont/load/lwip/cmakelists ) FetchContent_MakeAvailable(lwip) + +FetchContent_Declare(lwip-contrib + GIT_REPOSITORY https://github.com/netfoundry/lwip-contrib.git + GIT_TAG STABLE-2_1_0_RELEASE +) +FetchContent_MakeAvailable(lwip-contrib) \ No newline at end of file diff --git a/lib/ziti-tunnel/CMakeLists.txt b/lib/ziti-tunnel/CMakeLists.txt index 925424e8c..c6d79e678 100644 --- a/lib/ziti-tunnel/CMakeLists.txt +++ b/lib/ziti-tunnel/CMakeLists.txt @@ -13,7 +13,8 @@ target_compile_definitions(ziti-tunnel-sdk-c FetchContent_GetProperties(lwip) set (LWIP_DIR "${lwip_SOURCE_DIR}") -set (LWIP_CONTRIB_DIR "${lwip_SOURCE_DIR}/contrib") +FetchContent_GetProperties(lwip-contrib) +set (LWIP_CONTRIB_DIR "${lwip-contrib_SOURCE_DIR}") if(WIN32) set(LWIP_CONTRIB_INCLUDE "${LWIP_CONTRIB_DIR}/ports/win32/include")