Files
test/extern/gflags/CMakeLists.txt
Campbell Barton bcb7b119ae Cleanup: remove workarounds and version checks for unsupported compilers
Match minimum supported versions from the WIKI [0] by raising them to:

- GCC 9.3.1
- CLANG 8.0
- MVCS 2019 (16.9.16 / 1928)

Details:

- Add CMake checks that ensure supported compiler versions early on.
- Previously GCC per-processor version checks served to exclude
  `__clang__`, in some cases this has been replaced by explicitly
  excluding `__clang__`. This was needed as CLANG treated some of these
  flags differently to GCC, causing the build to fail.
- Remove USE_APPLE_OMP_FIX GCC-4.2 OpenMP workaround.
- Remove linking error workaround for old MSVC versions.

[0]: https://wiki.blender.org/wiki/Building_Blender

Reviewed by: brecht, LazyDodo

Ref D16068
2022-09-27 07:05:13 +10:00

44 lines
719 B
CMake

# 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)
add_cxx_flag("-Wno-cast-function-type")
endif()
set(INC
src
src/gflags
)
set(INC_SYS
)
set(SRC
src/gflags.cc
src/gflags_completions.cc
src/gflags_reporting.cc
src/gflags/config.h
src/gflags/gflags_completions.h
src/gflags/gflags_declare.h
src/gflags/gflags_gflags.h
src/gflags/gflags.h
src/mutex.h
src/util.h
)
set(LIB
)
if(WIN32)
list(APPEND SRC
src/windows_port.cc
src/windows_port.h
)
endif()
add_definitions(${GFLAGS_DEFINES})
blender_add_lib(extern_gflags "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")