mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 13:31:19 +01:00
- fix missing initializer for member [-Werror=missing-field-initializers] - fix ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic] - add gcc-4.8 tests - ubuntu has less patches than CentOS7 on gcc, some old bugs are not - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55971 - https://sourceware.org/bugzilla/show_bug.cgi?id=25399 - compat.cmake - disable some features with old compilers
12 lines
336 B
CMake
12 lines
336 B
CMake
|
|
# old gcc-4.8 support
|
|
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND
|
|
(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 4.8) AND
|
|
(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0))
|
|
|
|
# c++17 compiler required
|
|
set(C4RYML_BUILD_BENCHMARKS OFF CACHE BOOL "" FORCE)
|
|
# LLVM required
|
|
set(C4RYML_SANITIZE OFF CACHE BOOL "" FORCE)
|
|
endif()
|