diff options
author | Changqing Jing <changqing.jing@bmw.com> | 2024-07-12 13:08:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 22:08:25 -0700 |
commit | adc4c9f3c296e3adfe31596b195e5e7f50dc9bd9 (patch) | |
tree | 3fd6540a4cb54ad94be4175325c2983a4bc39504 | |
parent | 00a1e0506a0a07db485853b780fabe2db58374f0 (diff) | |
download | wabt-adc4c9f3c296e3adfe31596b195e5e7f50dc9bd9.tar.gz wabt-adc4c9f3c296e3adfe31596b195e5e7f50dc9bd9.tar.bz2 wabt-adc4c9f3c296e3adfe31596b195e5e7f50dc9bd9.zip |
Fix deprecated FetchContent_Populate warning third_party/uvwasi cmake build (#2440)
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d34e642f..df6ebbff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -573,7 +573,11 @@ if (BUILD_TOOLS) ) if(WITH_WASI) + # uvwasi uses the deprecated FetchContent_Populate function, disable it to avoid build error + set(CMAKE_POLICY_DEFAULT_CMP0169_BACK ${CMAKE_POLICY_DEFAULT_CMP0169}) + set(CMAKE_POLICY_DEFAULT_CMP0169 OLD) add_subdirectory("third_party/uvwasi" EXCLUDE_FROM_ALL) + set(CMAKE_POLICY_DEFAULT_CMP0169 ${CMAKE_POLICY_DEFAULT_CMP0169_BACK}) include_directories(third_party/uvwasi/include) add_definitions(-DWITH_WASI) set(INTERP_LIBS uvwasi_a) |