From d2407ff79d703931dac302f0fb7742b7584b532a Mon Sep 17 00:00:00 2001 From: Yuxin Wu Date: Sun, 27 Dec 2020 17:07:43 -0800 Subject: [PATCH] Update required cmake version `find_package(Python3 COMPONENTS Development)` is used in this `CMakeLists.txt`. This feature is supported only after cmake 3.12: * 3.12: https://cmake.org/cmake/help/v3.12/module/FindPython3.html?highlight=python3 * 3.11: https://cmake.org/cmake/help/v3.11/search.html?q=python3 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e10a8a3d161..bf76d97cddf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.12) project(torchvision) set(CMAKE_CXX_STANDARD 14) set(TORCHVISION_VERSION 0.7.0)