* Small fixes for openvino::pugixml creation for Dev packages * Flexiable components installation * Fixed compilation for x86 * Added extra checks for ENABLE_NCC_STYLE * Fixed typo in RPM
29 lines
1.1 KiB
CMake
29 lines
1.1 KiB
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
#
|
|
# OpenVINO Core components including frontends, plugins, etc
|
|
#
|
|
macro(ov_cpack_settings)
|
|
# fill a list of components which are part of conda
|
|
set(cpack_components_all ${CPACK_COMPONENTS_ALL})
|
|
unset(CPACK_COMPONENTS_ALL)
|
|
foreach(item IN LISTS cpack_components_all)
|
|
string(TOUPPER ${item} UPPER_COMP)
|
|
# filter out some components, which are not needed to be wrapped to conda-forge | brew | conan | vcpkg
|
|
if(NOT OV_CPACK_COMP_${UPPER_COMP}_EXCLUDE_ALL AND
|
|
# even for case of system TBB we have installation rules for wheels packages
|
|
# so, need to skip this explicitly since they are installed in `host` section
|
|
NOT item MATCHES "^tbb(_dev)?$" AND
|
|
# the same for pugixml
|
|
NOT item STREQUAL "pugixml")
|
|
list(APPEND CPACK_COMPONENTS_ALL ${item})
|
|
endif()
|
|
endforeach()
|
|
list(REMOVE_DUPLICATES CPACK_COMPONENTS_ALL)
|
|
|
|
# override generator
|
|
set(CPACK_GENERATOR "TGZ")
|
|
endmacro()
|