From bdf13ddcfbbdc2bd08270fbb72fec448f28e69c9 Mon Sep 17 00:00:00 2001
From: whitequark <whitequark@whitequark.org>
Date: Fri, 12 Mar 2021 03:00:58 +0000
Subject: CMake: Don't include Abseil if it is not used.

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3df6a58..6ebc2e75 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -171,7 +171,9 @@ if (NOT DEFINED CURRENT_GIT_VERSION)
     )
 endif()
 
-add_subdirectory(3rdparty/abseil-cpp EXCLUDE_FROM_ALL)
+if (NOT WASI)
+    add_subdirectory(3rdparty/abseil-cpp EXCLUDE_FROM_ALL)
+endif()
 
 if (BUILD_TESTS)
     add_subdirectory(3rdparty/googletest/googletest ${CMAKE_CURRENT_BINARY_DIR}/generated/3rdparty/googletest EXCLUDE_FROM_ALL)
-- 
cgit v1.2.3