@@ -361,7 +361,7 @@ if(NOT "${_repo_dir_name}" STREQUAL "executorch")
361361 "fix for this restriction."
362362 )
363363endif ()
364- set (_common_include_directories ${CMAKE_CURRENT_SOURCE_DIR} /.. ${CMAKE_CURRENT_SOURCE_DIR} /runtime/core/portable_type )
364+ set (_common_include_directories ${CMAKE_CURRENT_SOURCE_DIR} /..)
365365
366366#
367367# The `_<target>_srcs` lists are defined by including ${EXECUTORCH_SRCS_FILE}.
@@ -544,7 +544,6 @@ endif()
544544target_include_directories (
545545 executorch_core PUBLIC ${_common_include_directories}
546546)
547- target_compile_definitions (executorch_core PUBLIC C10_USING_CUSTOM_GENERATED_MACROS)
548547target_compile_options (executorch_core PUBLIC ${_common_compile_options} )
549548if (MAX_KERNEL_NUM)
550549 target_compile_definitions (
@@ -565,7 +564,6 @@ if(EXECUTORCH_BUILD_PYBIND AND APPLE)
565564 target_include_directories (
566565 executorch_core_shared PUBLIC ${_common_include_directories}
567566 )
568- target_compile_definitions (executorch_core_shared PUBLIC C10_USING_CUSTOM_GENERATED_MACROS)
569567 target_compile_options (
570568 executorch_core_shared PUBLIC ${_common_compile_options}
571569 )
@@ -586,7 +584,6 @@ endif()
586584add_library (executorch ${_executorch__srcs} )
587585target_link_libraries (executorch PRIVATE executorch_core)
588586target_include_directories (executorch PUBLIC ${_common_include_directories} )
589- target_compile_definitions (executorch PUBLIC C10_USING_CUSTOM_GENERATED_MACROS)
590587target_compile_options (executorch PUBLIC ${_common_compile_options} )
591588target_link_options_shared_lib(executorch)
592589
@@ -620,12 +617,6 @@ endif()
620617
621618# Install `executorch` library as well as `executorch-config.cmake` under
622619# ${CMAKE_INSTALL_PREFIX}/
623- install (DIRECTORY runtime/core/ DESTINATION include /executorch/runtime/core FILES_MATCHING PATTERN "*.h" )
624- install (DIRECTORY runtime/kernel/ DESTINATION include /executorch/runtime/kernel FILES_MATCHING PATTERN "*.h" )
625- install (DIRECTORY runtime/platform/ DESTINATION include /executorch/runtime/platform FILES_MATCHING PATTERN "*.h" )
626- install (DIRECTORY extension/kernel_util/ DESTINATION include /executorch/extension/kernel_util FILES_MATCHING PATTERN "*.h" )
627- install (DIRECTORY extension/tensor/ DESTINATION include /executorch/extension/tensor FILES_MATCHING PATTERN "*.h" )
628- install (DIRECTORY extension/threadpool/ DESTINATION include /executorch/extension/threadpool FILES_MATCHING PATTERN "*.h" )
629620install (
630621 TARGETS executorch executorch_core
631622 DESTINATION lib
@@ -784,8 +775,6 @@ if(EXECUTORCH_BUILD_PYBIND)
784775 target_include_directories (
785776 util PUBLIC ${_common_include_directories} ${TORCH_INCLUDE_DIRS}
786777 )
787- target_compile_definitions (util PUBLIC C10_USING_CUSTOM_GENERATED_MACROS)
788-
789778 target_compile_options (util PUBLIC ${_pybind_compile_options} )
790779 target_link_libraries (util PRIVATE torch c10 executorch extension_tensor)
791780
0 commit comments