Skip to content

Commit

Permalink
Update uvwasi CMakeLists.txt
Browse files Browse the repository at this point in the history
FetchContent_Populate is deprecated, updated the cmake file to use
FetchContent_MakeAvailable.
Also updated minimum cmake version for FetchContent_MakeAvailable
compatibility.

Signed-off-by: Ádám László Kulcsár <[email protected]>
  • Loading branch information
kulcsaradam committed Jul 24, 2024
1 parent 7800a31 commit 058e1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/uvwasi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.11)
cmake_minimum_required(VERSION 3.14)
project (
uvwasi
DESCRIPTION "WASI syscall API built atop libuv"
Expand Down Expand Up @@ -53,8 +53,8 @@ endif()
GIT_TAG ${LIBUV_VERSION})

FetchContent_GetProperties(libuv)
FetchContent_MakeAvailable(libuv)
if(NOT libuv_POPULATED)
FetchContent_Populate(libuv)
include_directories("${libuv_SOURCE_DIR}/include")
add_subdirectory(${libuv_SOURCE_DIR} ${libuv_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
Expand Down

0 comments on commit 058e1ed

Please sign in to comment.