Skip to content

Commit 5a31545

Browse files
bmangadatumbox
andauthored
Use version.txt to determine torchvision version in CMakeLists.txt (#3381)
Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent dcfd26e commit 5a31545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12)
22
project(torchvision)
33
set(CMAKE_CXX_STANDARD 14)
4-
set(TORCHVISION_VERSION 0.7.0)
4+
file(STRINGS version.txt TORCHVISION_VERSION)
55

66
option(WITH_CUDA "Enable CUDA support" OFF)
77

0 commit comments

Comments
 (0)