[CMake] Move xpu flag to xpu.cmake (#158542)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158542
Approved by: https://github.com/gujinghui, https://github.com/ezyang
This commit is contained in:
Yu, Guangye
2025-07-21 09:31:09 +00:00
committed by PyTorch MergeBot
parent 9894d43b6c
commit cbe1cb7018
2 changed files with 3 additions and 4 deletions

View File

@ -1190,10 +1190,6 @@ if(APPLE)
append_cxx_flag_if_supported("-Wno-missing-braces" CMAKE_CXX_FLAGS)
endif()
if(USE_XPU)
string(APPEND CMAKE_CXX_FLAGS " -DUSE_XPU")
endif()
if(EMSCRIPTEN)
string(
APPEND