-From bb446316a99707dab88173f4f853d343495e16ee Mon Sep 17 00:00:00 2001
+From 1259dcb17c0d0affcfa73ee41196b5caf11c286f Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Julian=20R=C3=BCth?= <julian.rueth@fsfe.org>
 Date: Fri, 8 Jul 2022 18:32:03 +0300
 Subject: [PATCH] Do not vendor external dependencies
 
 ---
- CMakeLists.txt                |   2 -
- external/external.cmake       | 235 ---------------------
+ external/external.cmake       | 104 +---------
  external/tpl/CMakeLists.txt   |  66 ------
  external/tpl/process.cpp      |  55 -----
  external/tpl/process.hpp      | 169 ---------------
  external/tpl/process_unix.cpp | 376 ----------------------------------
  external/tpl/process_win.cpp  | 350 -------------------------------
- 7 files changed, 1253 deletions(-)
- delete mode 100644 external/external.cmake
+ 6 files changed, 2 insertions(+), 1118 deletions(-)
  delete mode 100644 external/tpl/CMakeLists.txt
  delete mode 100644 external/tpl/process.cpp
  delete mode 100644 external/tpl/process.hpp
  delete mode 100644 external/tpl/process_unix.cpp
  delete mode 100644 external/tpl/process_win.cpp
 
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 2b44f51..7610042 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -29,8 +29,6 @@ else()
-     set(build_tool OFF)
- endif()
+diff --git a/external/external.cmake b/external/external.cmake
+index c42f01e..93a7c87 100644
+--- a/external/external.cmake
++++ b/external/external.cmake
+@@ -2,87 +2,6 @@
+ # SPDX-License-Identifier: MIT
+ # found in the top-level directory of this distribution.
  
--include(external/external.cmake)
--
- if(build_test AND CPPAST_TEST_GCOV AND (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
-     list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
-     include(CodeCoverage)
-diff --git a/external/external.cmake b/external/external.cmake
-deleted file mode 100644
-index c42f01e..0000000
---- a/external/external.cmake
-+++ /dev/null
-@@ -1,235 +0,0 @@
--# Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
--# SPDX-License-Identifier: MIT
--# found in the top-level directory of this distribution.
--
 -include(FetchContent)
 -
 -#

-else()
-    _cppast_find_libclang(${LLVM_CONFIG_BINARY} ${llvm_min_version} 0)
-endif()
-
-add_library(_cppast_libclang INTERFACE)
-target_link_libraries(_cppast_libclang INTERFACE ${LIBCLANG_LIBRARY})
-target_include_directories(_cppast_libclang INTERFACE ${LIBCLANG_INCLUDE_DIR})
-target_compile_definitions(_cppast_libclang INTERFACE
-                           CPPAST_CLANG_BINARY="${CLANG_BINARY}"
-                           CPPAST_CLANG_VERSION_STRING="${LLVM_VERSION}")
diff --git a/external/tpl/CMakeLists.txt b/external/tpl/CMakeLists.txt
deleted file mode 100644
index 8662ba3..0000000

-    set(LLVM_DOWNLOAD_DIR ${LLVM_DOWNLOAD_DIR} PARENT_SCOPE)
-endfunction()
-
 # determines the llvm version from a config binary
 macro(_cppast_llvm_version output_name llvm_binary)
     execute_process(COMMAND ${llvm_binary} --version
@@ -205,27 +124,8 @@ endfunction()
 
 set(llvm_min_version 4.0.0)
 
-if(NOT DEFINED LLVM_PREFERRED_VERSION)
-    set(LLVM_PREFERRED_VERSION 4.0.0 CACHE STRING "the preferred LLVM version")
-endif()
