···11+From fbf2ddd872db6a3640bc7d693356b99be9dd70f5 Mon Sep 17 00:00:00 2001
22+From: OPNA2608 <christoph.neidahl@gmail.com>
33+Date: Thu, 18 Aug 2022 20:12:07 +0200
44+Subject: [PATCH] Remove FetchContent usage
55+66+---
77+ CMakeLists.txt | 27 +++++----------------------
88+ 1 file changed, 5 insertions(+), 22 deletions(-)
99+1010+diff --git a/CMakeLists.txt b/CMakeLists.txt
1111+index 84c66a7..5234903 100644
1212+--- a/CMakeLists.txt
1313++++ b/CMakeLists.txt
1414+@@ -30,20 +30,9 @@ project(Fire VERSION 0.9.9)
1515+ # or
1616+ # add_subdirectory(JUCE) # If you've put JUCE in a subdirectory called JUCE
1717+1818+-include(FetchContent)
1919+-FetchContent_Declare(
2020+- JUCE
2121+- GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
2222+- GIT_TAG 7.0.1
2323+-)
2424+-FetchContent_MakeAvailable(JUCE)
2525+-
2626+-FetchContent_Declare(
2727+- readerwriterqueue
2828+- GIT_REPOSITORY https://github.com/cameron314/readerwriterqueue
2929+- GIT_TAG v1.0.6
3030+-)
3131+-FetchContent_MakeAvailable(readerwriterqueue)
3232++add_subdirectory(JUCE EXCLUDE_FROM_ALL)
3333++
3434++add_subdirectory(readerwriterqueue EXCLUDE_FROM_ALL)
3535+3636+ # If you are building a VST2 or AAX plugin, CMake needs to be told where to find these SDKs on your
3737+ # system. This setup should be done before calling `juce_add_plugin`.
3838+@@ -172,13 +161,7 @@ set(TestFiles
3939+ test/CatchMain.cpp
4040+ test/PluginTest.cpp)
4141+4242+-# Download the tagged version of Catch2
4343+-Include(FetchContent)
4444+-FetchContent_Declare(
4545+- Catch2
4646+- GIT_REPOSITORY https://github.com/catchorg/Catch2.git
4747+- GIT_TAG v2.13.7)
4848+-FetchContent_MakeAvailable(Catch2)
4949++add_subdirectory(Catch2 EXCLUDE_FROM_ALL)
5050+5151+ # Setup the test executable, again C++ 20 please
5252+ add_executable(Tests ${TestFiles})
5353+@@ -199,4 +182,4 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/test PREFIX "" FILES ${TestFiles})
5454+ # We have to manually provide the source directory here for now
5555+ # https://github.com/catchorg/Catch2/issues/2026
5656+ include(${Catch2_SOURCE_DIR}/contrib/Catch.cmake)
5757+-catch_discover_tests(Tests)
5858+\ No newline at end of file
5959++catch_discover_tests(Tests)
6060+--
6161+2.36.0
6262+