add_library(host_intf_pub INTERFACE) target_compile_options(host_intf_pub INTERFACE -fPIC #-fvisibility=hidden $<$:-O2> $<$:-O0> $<$:-std=c++11 -fvisibility-inlines-hidden> $<$:-pthread -Wfloat-equal -Wshadow -Wformat=2 -Wno-deprecated -Wextra> $,-fstack-protector-strong,-fstack-protector-all> ) target_compile_definitions(host_intf_pub INTERFACE _GLIBCXX_USE_CXX11_ABI=0 $<$:_FORTIFY_SOURCE=2> ) target_include_directories(host_intf_pub INTERFACE ${ASCEND_CANN_PACKAGE_PATH}/include ) target_link_options(host_intf_pub INTERFACE $<$,EXECUTABLE>:-pie> -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack $<$:-s> ) target_link_directories(host_intf_pub INTERFACE ${ASCEND_CANN_PACKAGE_PATH}/lib64 ) execute_process( COMMAND ${ASCEND_PYTHON_EXECUTABLE} extract_static_library.py -a ${ASCENDC_RUNTIME} -t ${ASCENDC_RUNTIME_OBJ_TARGET} -d ${CMAKE_BINARY_DIR} -o ${ASCENDC_RUNTIME_CONFIG} WORKING_DIRECTORY ${ASCENDC_KERNEL_CMAKE_DIR}/util RESULT_VARIABLE result OUTPUT_STRIP_TRAILING_WHITESPACE ) include(${CMAKE_BINARY_DIR}/${ASCENDC_RUNTIME_CONFIG}) add_library(${ASCENDC_RUNTIME_STATIC_TARGET} STATIC IMPORTED) set_target_properties(${ASCENDC_RUNTIME_STATIC_TARGET} PROPERTIES IMPORTED_LOCATION "${ASCENDC_RUNTIME}" )