diff --git a/cmake/third_party.cmake b/cmake/third_party.cmake index 602f966cf8ebc2c88d87903b956faa1bc40107e5..f181c60e6e98c242926753c9c15d70c2a466840e 100755 --- a/cmake/third_party.cmake +++ b/cmake/third_party.cmake @@ -321,8 +321,7 @@ endif() if(WITH_GPU) if(${CMAKE_CUDA_COMPILER_VERSION} LESS 11.0 - OR (${CMAKE_CUDA_COMPILER_VERSION} GREATER_EQUAL 11.6 - AND ${CMAKE_CUDA_COMPILER_VERSION} LESS 11.8)) + OR (WIN32 AND ${CMAKE_CUDA_COMPILER_VERSION} GREATER_EQUAL 11.6)) include(external/cub) # download cub list(APPEND third_party_deps extern_cub) endif()