diff --git a/backends/aoti/CMakeLists.txt b/backends/aoti/CMakeLists.txt index c8a4d30c2bf..bcff1d56769 100644 --- a/backends/aoti/CMakeLists.txt +++ b/backends/aoti/CMakeLists.txt @@ -30,11 +30,8 @@ set(_aoti_common_sources common_shims.cpp) add_library(aoti_common STATIC ${_aoti_common_sources}) target_include_directories( aoti_common - PUBLIC $ - $ + PUBLIC $ $ $ - # PyTorch AOTI headers from ExecuTorch's torch detection - ${TORCH_INCLUDE_DIRS} ) target_compile_options( aoti_common diff --git a/backends/cuda/CMakeLists.txt b/backends/cuda/CMakeLists.txt index af36c89585e..c95d34247be 100644 --- a/backends/cuda/CMakeLists.txt +++ b/backends/cuda/CMakeLists.txt @@ -80,11 +80,8 @@ set(_aoti_cuda_sources add_library(aoti_cuda STATIC ${_aoti_cuda_sources}) target_include_directories( aoti_cuda - PUBLIC ${CUDAToolkit_INCLUDE_DIRS} - $ + PUBLIC ${CUDAToolkit_INCLUDE_DIRS} $ $ - # PyTorch AOTI headers from ExecutorTorch's torch detection - ${TORCH_INCLUDE_DIRS} ) target_compile_options( aoti_cuda PUBLIC $<$:/EHsc /GR>