git: 41f3a6777ffd - main - games/multimc: Fix compilation by removing -Werror
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Sep 2022 04:24:05 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=41f3a6777ffd20584a85578fc8aa32ade64fee3b commit 41f3a6777ffd20584a85578fc8aa32ade64fee3b Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-09-19 04:00:14 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-09-19 04:24:00 +0000 games/multimc: Fix compilation by removing -Werror Reported by: fallout Approved by: portmgr (unbreak) --- games/multimc/files/patch-CMakeLists.txt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/games/multimc/files/patch-CMakeLists.txt b/games/multimc/files/patch-CMakeLists.txt index 4769c4dca48f..52633d6b8512 100644 --- a/games/multimc/files/patch-CMakeLists.txt +++ b/games/multimc/files/patch-CMakeLists.txt @@ -1,12 +1,18 @@ ---- CMakeLists.txt.orig 2019-07-13 18:18:48 UTC +--- CMakeLists.txt.orig 2020-03-29 01:12:57 UTC +++ CMakeLists.txt -@@ -38,6 +38,9 @@ if(UNIX AND APPLE) +@@ -32,11 +32,14 @@ set(CMAKE_C_STANDARD_REQUIRED true) + set(CMAKE_CXX_STANDARD 11) + set(CMAKE_C_STANDARD 11) + include(GenerateExportHeader) +-set(CMAKE_CXX_FLAGS " -Wall -pedantic -Werror -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong --param=ssp-buffer-size=4 -O3 -D_FORTIFY_SOURCE=2 ${CMAKE_CXX_FLAGS}") ++set(CMAKE_CXX_FLAGS " -Wall -pedantic -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong --param=ssp-buffer-size=4 -O3 -D_FORTIFY_SOURCE=2 ${CMAKE_CXX_FLAGS}") + if(UNIX AND APPLE) + set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${CMAKE_CXX_FLAGS}") endif() set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Werror=return-type") - ++ +# Fix build with Qt 5.13 +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEPRECATED_WARNINGS=Y") -+ + ##################################### Set Application options ##################################### - ######## Set URLs ########