git: a38b4f4ea7cc - main - devel/reflection-cpp: use CMAKE_TESTING_ON to build unit tests instead of CMAKE_ON

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 06 Jun 2025 05:09:37 UTC
The branch main has been updated by tagattie:

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

commit a38b4f4ea7cc10d34e59a90b6320c074ee74a707
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-06-06 05:06:13 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-06-06 05:09:22 +0000

    devel/reflection-cpp: use CMAKE_TESTING_ON to build unit tests instead of CMAKE_ON
    
    Don't force everyone to build unit tests. Move devel/catch2 to test
    dependency as it is only needed for testing only not build.
    
    Reported by:    diizzy (via ports-committers)
---
 devel/reflection-cpp/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/reflection-cpp/Makefile b/devel/reflection-cpp/Makefile
index 8806e380a1d3..7bb3c4e725c8 100644
--- a/devel/reflection-cpp/Makefile
+++ b/devel/reflection-cpp/Makefile
@@ -10,14 +10,14 @@ WWW=		https://github.com/contour-terminal/reflection-cpp
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${LOCALBASE}/lib/cmake/Catch2/Catch2Config.cmake:devel/catch2
+TEST_DEPENDS=	${LOCALBASE}/lib/cmake/Catch2/Catch2Config.cmake:devel/catch2
 
 USES=		cmake:testing
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	contour-terminal
 
-CMAKE_ON=	REFLECTION_TESTING
+CMAKE_TESTING_ON=	REFLECTION_TESTING
 
 PORTDOCS=	README.md