git: ddbaebe2a89c - main - devel/json-c: Don't build unit tests unless requested

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 26 Oct 2024 21:12:56 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ddbaebe2a89c1768a0ea27929971912d0b9ddd1b

commit ddbaebe2a89c1768a0ea27929971912d0b9ddd1b
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-10-26 21:11:12 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-10-26 21:11:15 +0000

    devel/json-c: Don't build unit tests unless requested
    
    Add BUILD_TESTING to CMAKE_OFF to avoid always building unit tests
    
    Approved by:    portmgr (blanket, build fix)
---
 devel/json-c/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devel/json-c/Makefile b/devel/json-c/Makefile
index 50e1217fa9d0..39ef11668cf5 100644
--- a/devel/json-c/Makefile
+++ b/devel/json-c/Makefile
@@ -13,7 +13,8 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		cmake:testing compiler:c11 cpe pathfix
 
-CMAKE_OFF=	DISABLE_BSYMBOLIC \
+CMAKE_OFF=	BUILD_TESTING \
+		DISABLE_BSYMBOLIC \
 		DISABLE_JSON_PATCH \
 		DISABLE_JSON_POINTER \
 		DISABLE_STATIC_FPIC \