flatbuffers: Strip out -Werror to fix the build with newer compilers
While here, use USE_CXX_FEATURES to indicate a language requirement rather than USE_LANGUAGES - it sets -std=c++0x by itself.
This commit is contained in:
parent
f7c7432e70
commit
c34f913276
1 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.5 2020/05/09 13:46:59 mef Exp $
|
||||
# $NetBSD: Makefile,v 1.6 2023/08/16 07:52:04 nia Exp $
|
||||
|
||||
DISTNAME= flatbuffers-1.9.0
|
||||
CATEGORIES= devel
|
||||
|
@ -11,11 +11,15 @@ COMMENT= Memory efficient serialization library
|
|||
LICENSE= apache-2.0
|
||||
|
||||
USE_CMAKE= yes
|
||||
USE_LANGUAGES= c c++11
|
||||
USE_LANGUAGES= c c++
|
||||
|
||||
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
|
||||
CMAKE_ARGS+= -DFLATBUFFERS_BUILD_SHAREDLIB=ON
|
||||
|
||||
USE_CXX_FEATURES+= c++11
|
||||
|
||||
BUILDLINK_TRANSFORM+= rm:-Werror
|
||||
|
||||
post-install:
|
||||
${RM} -f ${DESTDIR}${PREFIX}/include/flatbuffers/flatbuffers.h.orig
|
||||
${RM} -f ${DESTDIR}${PREFIX}/include/flatbuffers/reflection.h.orig
|
||||
|
|
Loading…
Reference in a new issue