Cleanup: quiet GCC cast-function-type warnings for gflags

This commit is contained in:
Campbell Barton 2022-07-26 14:47:12 +10:00
parent c3bc53162a
commit bdb4ebebf1
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2016 Blender Foundation. All rights reserved.
# Too noisy for code we don't maintain.
if(CMAKE_COMPILER_IS_GNUCC)
if(NOT "${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "8.0")
add_cxx_flag("-Wno-cast-function-type")
endif()
endif()
set(INC
src
src/gflags