Skip to content

Commit 0e10604

Browse files
committed
Excluded these C++ files for iOS build
1 parent 5cb18b5 commit 0e10604

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ios/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.4.1)
1+
cmake_minimum_required(VERSION 3.6)
22
set(TARGET torchvision_ops)
33
project(${TARGET} CXX)
44
set(CMAKE_CXX_STANDARD 14)
@@ -11,6 +11,12 @@ file(GLOB VISION_SRCS
1111
../torchvision/csrc/ops/*.h
1212
../torchvision/csrc/ops/*.cpp)
1313

14+
# Remove interpolate_aa sources as they are temporary code
15+
# see https://github.com/pytorch/vision/pull/3761
16+
# and using TensorIterator unavailable with iOS
17+
# FILTER was added in CMake>=3.6 => 3.4.1 -> 3.6
18+
list(FILTER VISION_SRCS EXCLUDE REGEX ".+(interpolate_aa).+")
19+
1420
add_library(${TARGET} STATIC
1521
${VISION_SRCS}
1622
)

0 commit comments

Comments
 (0)