From c1bc22369583d613cc8bcb69e4c5423f0904a0ef Mon Sep 17 00:00:00 2001 From: wuhuanzhou Date: Wed, 3 Mar 2021 14:56:18 +0800 Subject: [PATCH] compile with VS2017, test=develop (#31388) --- cmake/generic.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index cba338c2c4..3ab478eead 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) -- GitLab