From 34a4bbae17e1317db37312c6f3095cc615a294b7 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 11 Feb 2021 17:45:16 +0100 Subject: [PATCH] Use version.txt to determine torchvision version in CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf76d97cddf..dee76a4cf8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12) project(torchvision) set(CMAKE_CXX_STANDARD 14) -set(TORCHVISION_VERSION 0.7.0) +file(STRINGS version.txt TORCHVISION_VERSION) option(WITH_CUDA "Enable CUDA support" OFF)