Try to build cpp extension on Win10 but got "fatal error C1021: invalid preprocessor command 'warning'"

pragma warning with VS2017

C:\Users\tobai\AppData\Local\conda\conda\envs\IRIS30\lib\site-packages\torch\lib\include\torch\csrc\api\include\torch/torch.h(7): fatal error C1021: invalid preprocessor command 'warning’error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe’ failed with exit status 2