Skip to content

Commit a1a3423

Browse files
committed
update pytorch CmakeLists
1 parent a1d7fac commit a1a3423

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ if(INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
598598
set(BUILD_PYTHON OFF)
599599
set(BUILD_CAFFE2_OPS OFF)
600600
set(USE_DISTRIBUTED OFF)
601-
set(NO_API ON)
601+
set(NO_API OFF)
602602
set(USE_FBGEMM OFF)
603603
set(USE_QNNPACK OFF)
604604
set(INTERN_DISABLE_ONNX ON)

caffe2/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1080,11 +1080,11 @@ if(BUILD_LITE_INTERPRETER AND SELECTED_OP_LIST)
10801080
endif()
10811081

10821082
if(NOT INTERN_BUILD_MOBILE OR NOT BUILD_CAFFE2_MOBILE)
1083-
# if(NOT NO_API)
1083+
if(NOT NO_API)
10841084
target_include_directories(torch_cpu PRIVATE
10851085
${TORCH_SRC_DIR}/csrc/api
10861086
${TORCH_SRC_DIR}/csrc/api/include)
1087-
# endif()
1087+
endif()
10881088

10891089
if(BUILD_SPLIT_CUDA AND MSVC)
10901090
# -INCLUDE is used to ensure torch_cuda_cpp/cu are linked against in a project that relies on them.

0 commit comments

Comments
 (0)