From c99fc6bdd479749ccaefecb795e460cf5a7e8760 Mon Sep 17 00:00:00 2001 From: Avin0323 Date: Wed, 3 Mar 2021 08:30:07 +0800 Subject: [PATCH] compile with VS2017, test=develop --- cmake/generic.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index cba338c2c49f6..3ab478eead87e 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -493,7 +493,9 @@ function(nv_library TARGET_NAME) endif() endif(nv_library_SRCS) if (WIN32 AND ${CMAKE_CUDA_COMPILER_VERSION} LESS 11.0) - set_target_properties(${TARGET_NAME} PROPERTIES VS_USER_PROPS ${WIN_PROPS}) + if(${MSVC_VERSION} LESS_EQUAL 1900) + set_target_properties(${TARGET_NAME} PROPERTIES VS_USER_PROPS ${WIN_PROPS}) + endif() endif() endif() endfunction(nv_library)