diff options
Diffstat (limited to 'CMakeLists.txt')
-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) |