diff --git a/cmake/generic.cmake b/cmake/generic.cmake index cba338c2c49f68d245b4ea4df6e7445af34f6ec1..3ab478eead87e6565e1dd711177d2b3f514b36e4 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)