Use container-based infrastructure for Travis
This commit is contained in:
@@ -266,11 +266,18 @@ macro(set_exe_flags)
|
||||
add_flags_cxx("-Wno-documentation")
|
||||
endif()
|
||||
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
|
||||
include(CheckCXXCompilerFlag)
|
||||
check_cxx_compiler_flag(-Wno-reserved-id-macro HAS_NO_RESERVED_ID_MACRO)
|
||||
check_cxx_compiler_flag(-Wno-documentation-unknown-command HAS_NO_DOCUMENTATION_UNKNOWN)
|
||||
if (HAS_NO_RESERVED_ID_MACRO)
|
||||
# Use this flag to ignore error for a reserved macro problem in sqlite 3
|
||||
add_flags_cxx("-Wno-reserved-id-macro")
|
||||
endif()
|
||||
if (HAS_NO_DOCUMENTATION_UNKNOWN)
|
||||
# Ignore another problem in sqlite
|
||||
add_flags_cxx("-Wno-documentation-unknown-command")
|
||||
endif()
|
||||
add_flags_cxx("-Wno-format-pedantic")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user