Reverted temporary WAs for gflags installation for CentOS 7 (#14370)

This commit is contained in:
Ilya Lavrenov 2022-12-02 22:10:02 +04:00 committed by GitHub
parent 78f95ddea4
commit cf8c78483d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -97,13 +97,9 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
endif()
####################################
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/utils")
set(gflags_required ON)
endif()
if(TARGET gflags)
set(GFLAGS_TARGET gflags)
elseif(gflags_required)
else()
if(EXISTS /etc/debian_version)
set(gflags_component nothreads_static)
else()

View File

@ -330,7 +330,7 @@ if(CPACK_GENERATOR MATCHES "^(DEB|RPM|CONDA-FORGE|BREW)$")
if(NOT ENABLE_SYSTEM_PUGIXML)
message(FATAL_ERROR "Pugixml must be used as a ${CPACK_GENERATOR} package. Install libpugixml-dev / pugixml-devel")
endif()
elseif(APPLE OR WIN32 OR LINUX_OS_NAME STREQUAL "CentOS 7")
elseif(APPLE OR WIN32)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/gflags
DESTINATION ${OV_CPACK_SAMPLESDIR}/cpp/thirdparty
COMPONENT ${OV_CPACK_COMP_CPP_SAMPLES}