diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 6ad69d4a..a5405731 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 925424e8..c6d79e67 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")