Blame Don-t-download-catch-during-build.patch

Jeremy Cline a8786d
From 1983388a2f472087bddbafb66f41f5430eeee5cc Mon Sep 17 00:00:00 2001
Jeremy Cline a8786d
From: Jeremy Cline <jcline@redhat.com>
Jeremy Cline a8786d
Date: Fri, 7 Sep 2018 00:52:51 -0400
Jeremy Cline a8786d
Subject: [PATCH] Don't download catch during build
Jeremy Cline a8786d
Jeremy Cline a8786d
Signed-off-by: Jeremy Cline <jcline@redhat.com>
Jeremy Cline a8786d
---
Jeremy Cline a8786d
 CMakeLists.txt | 21 ---------------------
Jeremy Cline a8786d
 1 file changed, 21 deletions(-)
Jeremy Cline a8786d
Jeremy Cline a8786d
diff --git a/CMakeLists.txt b/CMakeLists.txt
Jeremy Cline a8786d
index e217171..251cbae 100644
Jeremy Cline a8786d
--- a/CMakeLists.txt
Jeremy Cline a8786d
+++ b/CMakeLists.txt
Jeremy Cline a8786d
@@ -284,27 +284,6 @@ foreach(file ${source_all})
Jeremy Cline a8786d
   set_property(SOURCE ${file} APPEND PROPERTY COMPILE_DEFINITIONS __FILENAME__="${shorter_file}")
Jeremy Cline a8786d
 endforeach()
Jeremy Cline a8786d
 
Jeremy Cline a8786d
-#
Jeremy Cline a8786d
-## Add a rule to download the catch unit test framework
Jeremy Cline a8786d
-#
Jeremy Cline a8786d
-include(ExternalProject)
Jeremy Cline a8786d
-ExternalProject_Add(catch
Jeremy Cline a8786d
-  GIT_REPOSITORY "https://lab.louiz.org/louiz/Catch.git"
Jeremy Cline a8786d
-  PREFIX "external"
Jeremy Cline a8786d
-  UPDATE_COMMAND ""
Jeremy Cline a8786d
-  CONFIGURE_COMMAND ""
Jeremy Cline a8786d
-  BUILD_COMMAND ""
Jeremy Cline a8786d
-  INSTALL_COMMAND ""
Jeremy Cline a8786d
-  )
Jeremy Cline a8786d
-set_target_properties(catch PROPERTIES EXCLUDE_FROM_ALL TRUE)
Jeremy Cline a8786d
-ExternalProject_Get_Property(catch SOURCE_DIR)
Jeremy Cline a8786d
-if(NOT EXISTS ${CMAKE_SOURCE_DIR}/tests/catch.hpp)
Jeremy Cline a8786d
-  target_include_directories(test_suite
Jeremy Cline a8786d
-    PUBLIC "${SOURCE_DIR}/single_include/"
Jeremy Cline a8786d
-    )
Jeremy Cline a8786d
-  add_dependencies(test_suite catch)
Jeremy Cline a8786d
-endif()
Jeremy Cline a8786d
-
Jeremy Cline a8786d
 #
Jeremy Cline a8786d
 ## Add some custom rules to launch the tests
Jeremy Cline a8786d
 #
Jeremy Cline a8786d
-- 
Jeremy Cline a8786d
2.17.1
Jeremy Cline a8786d