-From 86a1a4d4c992f79e2c1673c1f89e82373136809a Mon Sep 17 00:00:00 2001
+From 7aa8447c2513b6dbc447e6a7196f37a0f2f91aab Mon Sep 17 00:00:00 2001
 From: Martin Jansa <martin.jansa@lge.com>
 Date: Fri, 18 Dec 2020 07:40:04 -0800
 Subject: [PATCH] CMakeLists.txt: use tvm from separate recipe

 if(${ROS_VERSION} EQUAL 1)
   catkin_package(
     INCLUDE_DIRS include
@@ -118,31 +82,5 @@ elseif(${ROS_VERSION} EQUAL 2)
   ament_export_include_directories(include)
   ament_export_libraries(tvm tvm_runtime)
 
-  install(DIRECTORY ${SOURCE_DIR}/include/tvm/runtime/
-    DESTINATION include/${PROJECT_NAME}/tvm/runtime
-  )


Signed-off-by: Martin Jansa <martin.jansa@lge.com>
---
 CMakeLists.txt | 74 --------------------------------------------------
 1 file changed, 74 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8a1cef..220f1fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,47 +44,6 @@ elseif(${ROS_VERSION} EQUAL 2)
   find_package(ament_cmake REQUIRED)
 endif()
 
-include(ExternalProject)
-
-set(PATCH_FILE ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.patch)
-if(ROS_VERSION EQUAL 2)
-  set(PATCH_FILE ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.gpu.patch)
-endif()
-
-ExternalProject_Add(tvm-build
-  GIT_REPOSITORY https://github.com/apache/incubator-tvm
-  GIT_TAG v0.7.0
-  GIT_SHALLOW TRUE
-  BUILD_IN_SOURCE TRUE
-  PATCH_COMMAND git apply ${PATCH_FILE}
-  COMMAND cp <SOURCE_DIR>/cmake/config.cmake <SOURCE_DIR>
-  CONFIGURE_COMMAND ${CMAKE_COMMAND} -DCMAKE_POSITION_INDEPENDENT_CODE=ON .
-  INSTALL_COMMAND ""
-)
-
