Re: git: 0c34c5fd80f3 - main - devel/cpprestsdk: purge bogus patch file and unset WERROR instead

From: Sergey A. Osokin <osa_at_freebsd.org>
Date: Sat, 08 Oct 2022 18:55:50 UTC
Thank you, Alexey!

On Sat, Oct 08, 2022 at 06:52:44PM +0000, Alexey Dokuchaev wrote:
> The branch main has been updated by danfe:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=0c34c5fd80f37c4d802092c9768cf272754dd9ab
> 
> commit 0c34c5fd80f37c4d802092c9768cf272754dd9ab
> Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
> AuthorDate: 2022-10-08 18:51:40 +0000
> Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
> CommitDate: 2022-10-08 18:51:40 +0000
> 
>     devel/cpprestsdk: purge bogus patch file and unset WERROR instead
>     
>     While here, remove needless -Wno-c11-extensions from the CXXFLAGS.
> ---
>  devel/cpprestsdk/Makefile                       |  4 +---
>  devel/cpprestsdk/files/patch-src_CMakeLists.txt | 11 -----------
>  2 files changed, 1 insertion(+), 14 deletions(-)
> 
> diff --git a/devel/cpprestsdk/Makefile b/devel/cpprestsdk/Makefile
> index a28cdac6f76d..e93798effc69 100644
> --- a/devel/cpprestsdk/Makefile
> +++ b/devel/cpprestsdk/Makefile
> @@ -18,9 +18,7 @@ USE_LDCONFIG=	yes
>  USE_GITHUB=	yes
>  GH_ACCOUNT=	Microsoft
>  WRKSRC_SUBDIR=	Release
> -CMAKE_OFF=	BUILD_SAMPLES BUILD_TESTS
> -
> -CXXFLAGS+=	-Wno-c11-extensions
> +CMAKE_OFF=	BUILD_SAMPLES BUILD_TESTS WERROR
>  
>  OPTIONS_DEFINE=	BROTLI
>  
> diff --git a/devel/cpprestsdk/files/patch-src_CMakeLists.txt b/devel/cpprestsdk/files/patch-src_CMakeLists.txt
> deleted file mode 100644
> index b99d076519df..000000000000
> --- a/devel/cpprestsdk/files/patch-src_CMakeLists.txt
> +++ /dev/null
> @@ -1,11 +0,0 @@
> ---- src/CMakeLists.txt.orig	2022-10-06 15:08:19 UTC
> -+++ src/CMakeLists.txt
> -@@ -187,7 +187,7 @@ configure_pch(cpprest stdafx.h pch/stdafx.cpp /Zm120)
> - 
> - if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
> -   if(WERROR)
> --    target_compile_options(cpprest PRIVATE -Werror)
> -+    target_compile_options(cpprest PRIVATE -Wno-error)
> -   endif()
> -   target_compile_options(cpprest PRIVATE -pedantic ${WARNINGS})
> - elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")