  install(DIRECTORY cmake DESTINATION share/${PROJECT_NAME})
 -
 -ament_package(CONFIG_EXTRAS zstd_vendor-extras.cmake)
+diff --git a/cmake_minimum_required_2.8.12.patch b/cmake_minimum_required_2.8.12.patch
+deleted file mode 100644
+index 939252df..00000000
+--- a/cmake_minimum_required_2.8.12.patch
++++ /dev/null
+@@ -1,26 +0,0 @@
+-From eca046fb11a29fa9ace41844f7797bc4e21540ac Mon Sep 17 00:00:00 2001
+-From: Emerson Knapp <eknapp@amazon.com>
+-Date: Fri, 4 Dec 2020 17:07:23 -0800
+-Subject: [PATCH] Update cmake_minimum_required to 2.8.12
+-
+-Signed-off-by: Emerson Knapp <eknapp@amazon.com>
+----
+- build/cmake/CMakeLists.txt | 2 +-
+- 1 file changed, 1 insertion(+), 1 deletion(-)
+-
+-diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt
+-index 9d0e7fb0..20df1dcf 100644
+---- a/build/cmake/CMakeLists.txt
+-+++ b/build/cmake/CMakeLists.txt
+-@@ -7,7 +7,7 @@
+- # in the COPYING file in the root directory of this source tree).
+- # ################################################################
+- 
+--cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)
+-+cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
+-   
+- # As of 2018-12-26 ZSTD has been validated to build with cmake version 3.13.2 new policies. 
+- # Set and use the newest cmake policies that are validated to work 
+--- 
+-2.17.1
+-
+diff --git a/no_internal_headers.patch b/no_internal_headers.patch
+deleted file mode 100644
+index 10793892..00000000
+--- a/no_internal_headers.patch
++++ /dev/null
+@@ -1,28 +0,0 @@
+-From f1153100884e580dce331e8dd56b260ffb2f04d5 Mon Sep 17 00:00:00 2001
+-From: Emerson Knapp <eknapp@amazon.com>
+-Date: Tue, 2 Feb 2021 17:47:46 -0800
+-Subject: [PATCH] Don't install internal headers
+-
+-Signed-off-by: Emerson Knapp <eknapp@amazon.com>
+----
+- build/cmake/lib/CMakeLists.txt | 4 ----
+- 1 file changed, 4 deletions(-)
+-
+-diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt
+-index 7adca875..0c2d777e 100644
+---- a/build/cmake/lib/CMakeLists.txt
+-+++ b/build/cmake/lib/CMakeLists.txt
+-@@ -147,10 +147,6 @@ endif ()
+- # install target
+- install(FILES
+-     ${LIBRARY_DIR}/zstd.h
+--    ${LIBRARY_DIR}/deprecated/zbuff.h
+--    ${LIBRARY_DIR}/dictBuilder/zdict.h
+--    ${LIBRARY_DIR}/dictBuilder/cover.h
+--    ${LIBRARY_DIR}/common/zstd_errors.h
+-     DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
+- 
+- if (ZSTD_BUILD_SHARED)
+--- 
+-2.17.1
+-

-  endif()
-  list(APPEND extra_cmake_args "-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}")
-
-  include(ExternalProject)
-  # The CMakeLists.txt file for zstd is in a subdirectory.
-  # We need to configure the CMake command to build from there instead.
-  ExternalProject_Add(zstd-1.4.4
-    URL https://github.com/facebook/zstd/archive/v1.4.4.zip
-    URL_MD5 3a5c3a535280b7f4dfdbd739fcc7173f
-    TIMEOUT 60
-    SOURCE_SUBDIR build/cmake
-    CMAKE_ARGS

-      ${extra_cmake_args}
-    # Note: zstd v1.4.6 will include the following fix. When that is released, upgrade and remove this patch.
-    PATCH_COMMAND
-      ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> git apply -p1 --ignore-space-change --whitespace=nowarn
-        ${CMAKE_CURRENT_SOURCE_DIR}/cmake_minimum_required_2.8.12.patch &&
-      ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> git apply -p1 --ignore-space-change --whitespace=nowarn
-        ${CMAKE_CURRENT_SOURCE_DIR}/no_internal_headers.patch
-  )
-
-  install(
