mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Merge pull request #4853 from youknowone/flatbuffer-gcc8
[flatbuffers] disable -Werror for gcc8
This commit is contained in:
commit
35be0e7c2b
@ -1,4 +1,4 @@
|
||||
Source: flatbuffers
|
||||
Version: 1.9.0-2
|
||||
Version: 1.9.0-3
|
||||
Description: Memory Efficient Serialization Library http://google.github.io/flatbuffers/
|
||||
FlatBuffers is an efficient cross platform serialization library for games and other memory constrained apps. It allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility.
|
||||
|
23
ports/flatbuffers/no-werror.patch
Normal file
23
ports/flatbuffers/no-werror.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a3388dd..f0626e5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -119,12 +119,16 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
"${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
endif(CYGWIN)
|
||||
set(CMAKE_CXX_FLAGS
|
||||
- "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wextra -Werror=shadow")
|
||||
+ "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=shadow")
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.4)
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
|
||||
set(CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -faligned-new")
|
||||
endif()
|
||||
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
|
||||
+ set(CMAKE_CXX_FLAGS
|
||||
+ "${CMAKE_CXX_FLAGS} -Wextra")
|
||||
+ endif()
|
||||
set(CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parameter")
|
||||
endif()
|
||||
|
@ -10,7 +10,9 @@ vcpkg_from_github(
|
||||
REF v1.9.0
|
||||
SHA512 0ba07dbe5b2fde1d0a6e14ee26ee2816062541d934eda204b846a30c019362f2626761b628c900293928b9b546dba8ca477c13182e022c3e0e0a142fd67f0696
|
||||
HEAD_REF master
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/ignore_use_of_cmake_toolchain_file.patch
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/ignore_use_of_cmake_toolchain_file.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/no-werror.patch
|
||||
)
|
||||
|
||||
set(OPTIONS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user