From 0357a97c40a41be0f362a3d0907e378b236b3c71 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 5 Dec 2022 23:35:02 +0400 Subject: [PATCH] Don't install scripts which are not used (#14414) --- scripts/CMakeLists.txt | 17 +++++++++++++---- src/cmake/openvino.cmake | 3 --- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 1af3f6f1f32..27a5ca7e315 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -64,8 +64,17 @@ install(PROGRAMS "${_setupvars_file}" if(LINUX) ie_cpack_add_component(${OV_CPACK_COMP_INSTALL_DEPENDENCIES} HIDDEN) - install(DIRECTORY install_dependencies/ - DESTINATION install_dependencies - COMPONENT ${OV_CPACK_COMP_INSTALL_DEPENDENCIES} - USE_SOURCE_PERMISSIONS) + set(install_dependencies_files install_openvino_dependencies.sh) + if(ENABLE_INTEL_GPU) + list(APPEND install_dependencies_files install_NEO_OCL_driver.sh) + endif() + if(ENABLE_INTEL_MYRIAD) + list(APPEND install_dependencies_files install_NCS_udev_rules.sh) + endif() + + foreach(install_dependencies_file IN LISTS install_dependencies_files) + install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/install_dependencies/${install_dependencies_file}" + DESTINATION install_dependencies/ + COMPONENT ${OV_CPACK_COMP_INSTALL_DEPENDENCIES}) + endforeach() endif() diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake index 757372f6981..6f68dc4192e 100644 --- a/src/cmake/openvino.cmake +++ b/src/cmake/openvino.cmake @@ -200,9 +200,6 @@ if(ENABLE_PKGCONFIG_GEN) if(ENABLE_OV_IR_FRONTEND) list(REMOVE_ITEM PKGCONFIG_OpenVINO_FRONTENDS_LIST openvino_ir_frontend) endif() - if(ENABLE_OV_TF_FRONTEND) - list(REMOVE_ITEM PKGCONFIG_OpenVINO_FRONTENDS_LIST openvino_tensorflow_frontend) - endif() foreach(frontend IN LISTS PKGCONFIG_OpenVINO_FRONTENDS_LIST) if(PKGCONFIG_OpenVINO_FRONTENDS)