From 67ccbba3a7d01767809b94535090af95ff911256 Mon Sep 17 00:00:00 2001
From: "Kirill A. Korinsky" <kirill@korins.ky>
Date: Tue, 9 Aug 2022 18:55:07 +0200
Subject: [PATCH] [libyaml] add the way to include it

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

diff --git CMakeLists.txt CMakeLists.txt
index 79bc676..b198a6e 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -170,6 +170,10 @@ endif()
 
 # build tapilite first, so ld64 can link against it
 if(XTOOLS_USE_TAPILITE)
+  if(EXISTS ${XTOOLS_LIBYAML_PATH}/CMakeLists.txt)
+    add_subdirectory(${XTOOLS_LIBYAML_PATH})
+    include_directories("${CMAKE_SOURCE_DIR}/libyaml/include")
+  endif ()
   add_subdirectory(tapilite)
 endif()
 
-- 
2.38.1

