From 4d609295280bf9b50cde69bb9a483a8db839ba0b Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Fri, 6 Mar 2020 16:13:56 -0500 Subject: [PATCH] Include FetchContent on CMake >= 3.11 (#6) Fixes #5 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54ab11ae..c19cf58b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,8 @@ option(DARKNET_OPENCV "Build darknet with OpenCV support" ON) if(CMAKE_VERSION VERSION_LESS "3.11") include("cmake/FetchContent.cmake") +else() + include(FetchContent) endif() # Same version as Debian Buster