Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

611 B
Raw Blame
# Copyright (C) 2018-2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

set(GFLAGS_IS_SUBPROJECT TRUE)
set(HAVE_SYS_STAT_H 1)
set(HAVE_INTTYPES_H 1)
set(INTTYPES_FORMAT C99)
set(BUILD_TESTING OFF)
set(BUILD_SHARED_LIBS OFF)

add_subdirectory(gflags EXCLUDE_FROM_ALL)
set_target_properties(gflags_nothreads_static PROPERTIES FOLDER thirdparty)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|IntelLLVM)$")
    # DEFINE_* macros may generate unused variables in consumers, e.g. test code.
    target_compile_options(gflags_nothreads_static PUBLIC -Wno-unused-variable)
endif()