1 From fbf2ddd872db6a3640bc7d693356b99be9dd70f5 Mon Sep 17 00:00:00 2001
2 From: OPNA2608 <christoph.neidahl@gmail.com>
3 Date: Thu, 18 Aug 2022 20:12:07 +0200
4 Subject: [PATCH] Remove FetchContent usage
7 CMakeLists.txt | 27 +++++----------------------
8 1 file changed, 5 insertions(+), 22 deletions(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index 84c66a7..5234903 100644
14 @@ -30,20 +30,9 @@ project(Fire VERSION 0.9.9)
16 # add_subdirectory(JUCE) # If you've put JUCE in a subdirectory called JUCE
18 -include(FetchContent)
19 -FetchContent_Declare(
21 - GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
24 -FetchContent_MakeAvailable(JUCE)
26 -FetchContent_Declare(
28 - GIT_REPOSITORY https://github.com/cameron314/readerwriterqueue
31 -FetchContent_MakeAvailable(readerwriterqueue)
32 +add_subdirectory(JUCE EXCLUDE_FROM_ALL)
34 +add_subdirectory(readerwriterqueue EXCLUDE_FROM_ALL)
36 # If you are building a VST2 or AAX plugin, CMake needs to be told where to find these SDKs on your
37 # system. This setup should be done before calling `juce_add_plugin`.
38 @@ -172,13 +161,7 @@ set(TestFiles
42 -# Download the tagged version of Catch2
43 -Include(FetchContent)
44 -FetchContent_Declare(
46 - GIT_REPOSITORY https://github.com/catchorg/Catch2.git
48 -FetchContent_MakeAvailable(Catch2)
49 +add_subdirectory(Catch2 EXCLUDE_FROM_ALL)
51 # Setup the test executable, again C++ 20 please
52 add_executable(Tests ${TestFiles})
53 @@ -199,4 +182,4 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/test PREFIX "" FILES ${TestFiles})
54 # We have to manually provide the source directory here for now
55 # https://github.com/catchorg/Catch2/issues/2026
56 include(${Catch2_SOURCE_DIR}/contrib/Catch.cmake)
57 -catch_discover_tests(Tests)
58 \ No newline at end of file
59 +catch_discover_tests(Tests)