Skip to content

Commit 09886f1

Browse files
committed
update CMakeLists.txt
1 parent d69d3db commit 09886f1

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
@@ -457,7 +457,7 @@ endif()
457457
# Torch uses outdated components to detect CUDA arch, causing failure on
458458
# latest CUDA kits. Set CMake variable TORCH_CUDA_ARCH_LIST in the form of
459459
# "major.minor" if required.
460-
if(DEFINED Torch_DIR)
460+
if(ENABLE_DEEPKS OR DEFINED Torch_DIR)
461461
find_package(Torch REQUIRED)
462462
if(NOT Torch_VERSION VERSION_LESS "2.1.0")
463463
set_if_higher(CMAKE_CXX_STANDARD 17)

0 commit comments

Comments
 (0)