mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Use local FindCUDA for CMake < 3.7
This commit is contained in:
parent
3a84574c81
commit
e881efde79
|
|
@ -260,6 +260,8 @@ if (MSVC)
|
|||
# We know that VS2017 needs the new FindCUDA functionality, so we will
|
||||
# simply enable it for the whole Windows build.
|
||||
set(CAFFE2_CMAKE_USE_LOCAL_FINDCUDA ON)
|
||||
elseif (${CMAKE_VERSION} VERSION_LESS 3.7 AND ${USE_CUDA})
|
||||
set(CAFFE2_CMAKE_USE_LOCAL_FINDCUDA ON)
|
||||
endif()
|
||||
|
||||
if (${CAFFE2_CMAKE_USE_LOCAL_FINDCUDA})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user