From 1561b7b4fd8ca7264d624aa88eddd7fd6113dfb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 9 Jan 2019 09:48:51 +0900 Subject: [PATCH] Remove warning from external acl and tensorflow (#4181) Remove warning from external acl and tensorflow by using SYSTEM keyword Signed-off-by: Hyeongseok Oh --- cmake/packages/ARMComputeConfig.cmake | 6 +++--- externals/CMakeLists.txt | 2 +- runtimes/neurun/CMakeLists.txt | 2 +- runtimes/neurun/src/backend/acl_cl/CMakeLists.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmake/packages/ARMComputeConfig.cmake b/cmake/packages/ARMComputeConfig.cmake index 656163a..e979300 100644 --- a/cmake/packages/ARMComputeConfig.cmake +++ b/cmake/packages/ARMComputeConfig.cmake @@ -53,7 +53,7 @@ function(_ARMCompute_Import) if(NOT TARGET arm_compute_core) add_library(arm_compute_core INTERFACE) - target_include_directories(arm_compute_core INTERFACE ${INCLUDE_DIR}) + target_include_directories(arm_compute_core SYSTEM INTERFACE ${INCLUDE_DIR}) target_link_libraries(arm_compute_core INTERFACE dl ${LIB_PTHREAD}) target_link_libraries(arm_compute_core INTERFACE ${CORE_LIBRARY}) if (${TARGET_OS} STREQUAL "tizen") @@ -63,14 +63,14 @@ function(_ARMCompute_Import) if(NOT TARGET arm_compute) add_library(arm_compute INTERFACE) - target_include_directories(arm_compute INTERFACE ${INCLUDE_DIR}) + target_include_directories(arm_compute SYSTEM INTERFACE ${INCLUDE_DIR}) target_link_libraries(arm_compute INTERFACE ${RUNTIME_LIBRARY}) target_link_libraries(arm_compute INTERFACE arm_compute_core) endif(NOT TARGET arm_compute) if(NOT TARGET arm_compute_graph) add_library(arm_compute_graph INTERFACE) - target_include_directories(arm_compute_graph INTERFACE ${INCLUDE_DIR}) + target_include_directories(arm_compute_graph SYSTEM INTERFACE ${INCLUDE_DIR}) target_link_libraries(arm_compute_graph INTERFACE ${GRAPH_LIBRARY}) target_link_libraries(arm_compute_graph INTERFACE arm_compute) endif(NOT TARGET arm_compute_graph) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 1c8a14a..fcbdae9 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -87,7 +87,7 @@ if("${TARGET_OS}" STREQUAL "android") endif() add_library(tensorflow-lite ${TFLITE_SRCS}) -target_include_directories(tensorflow-lite PUBLIC ${TFLITE_INCLUDES}) +target_include_directories(tensorflow-lite SYSTEM PUBLIC ${TFLITE_INCLUDES}) target_compile_definitions(tensorflow-lite PUBLIC "GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK") if(BUILD_TFLITE_BENCHMARK_MODEL) target_compile_definitions(tensorflow-lite PUBLIC "TFLITE_PROFILING_ENABLED") diff --git a/runtimes/neurun/CMakeLists.txt b/runtimes/neurun/CMakeLists.txt index 92547da..256b7e5 100644 --- a/runtimes/neurun/CMakeLists.txt +++ b/runtimes/neurun/CMakeLists.txt @@ -34,7 +34,7 @@ target_link_libraries(${LIB_NEURUN} tensorflow-lite) target_link_libraries(${LIB_NEURUN} nnfw_lib_misc) target_link_libraries(${LIB_NEURUN} nnfw_lib_cpp14) -target_compile_options(${LIB_NEURUN} PRIVATE -Wall -Wextra -Werror -Wno-unused-parameter) +target_compile_options(${LIB_NEURUN} PRIVATE -Wall -Wextra -Werror) set_target_properties(${LIB_NEURUN} PROPERTIES OUTPUT_NAME neuralnetworks) diff --git a/runtimes/neurun/src/backend/acl_cl/CMakeLists.txt b/runtimes/neurun/src/backend/acl_cl/CMakeLists.txt index f1ea22b..9eae095 100644 --- a/runtimes/neurun/src/backend/acl_cl/CMakeLists.txt +++ b/runtimes/neurun/src/backend/acl_cl/CMakeLists.txt @@ -9,7 +9,7 @@ target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} arm_compute) target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} ${LIB_NEURUN_KERNEL_ACL_CL}) target_link_libraries(${LIB_NEURUN_BACKEND_ACL_CL} ${LIB_NEURUN}) -target_compile_options(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE -Wall -Wextra -Werror -Wno-unused-parameter) +target_compile_options(${LIB_NEURUN_BACKEND_ACL_CL} PRIVATE -Wall -Wextra -Werror) set_target_properties(${LIB_NEURUN_BACKEND_ACL_CL} PROPERTIES OUTPUT_NAME backend_acl_cl) install(TARGETS ${LIB_NEURUN_BACKEND_ACL_CL} DESTINATION lib/neurun) -- 2.7.4