diff --git a/cmake/paddle_win.props b/cmake/paddle_win.props
index 7e434c6d907cc40733a81d8a7cdbe7c285a2bd41..0115ad4b59fc466ea10be6912257c40d31ed3640 100644
--- a/cmake/paddle_win.props
+++ b/cmake/paddle_win.props
@@ -15,11 +15,11 @@
InheritFromHost
-ccbin "%(VCBinDir)" -x cu [GenerateRelocatableDeviceCode] [Include] [RequiredIncludes] [InterleaveSourceInPTX] [GPUDebugInfo] [GenerateLineInfo] [Keep] [KeepDir] [MaxRegCount] [PtxAsOptionV] [TargetMachinePlatform] [NvccCompilation] [CudaRuntime] [AdditionalOptions]
- --use-local-env
+ --use-local-env --cl-version $(CudaClVersion)
[CodeGeneration]
-clean
-
- -Xcompiler "/EHsc [Warning] /nologo [Optimization] [ProgramDataBaseFileName] $(CudaForceSynchronousPdbWrites) [RuntimeChecks] [Runtime] [TypeInfo]"
+
+ -Xcompiler "/EHsc [Warning] /nologo [Optimization] $(CudaForceSynchronousPdbWrites) [RuntimeChecks] [Runtime] [TypeInfo]"
%(BaseCommandLineTemplate) [CompileOut] "%(FullPath)"
%(BaseCommandLineTemplate) [HostDebugInfo] [Emulation] [FastMath] [Defines] %(HostCommandLineTemplate) [CompileOut] "%(FullPath)"