Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2021 20:25:05 GMT
From:      Adriaan de Groot <adridg@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e75ad72a3ca9 - main - databases/mysql-connector-c: fix configure against CMake 3.20
Message-ID:  <202104222025.13MKP5ta032290@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by adridg:

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

commit e75ad72a3ca92b6ca0c71ddee75fa1e0bc578582
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2021-04-22 20:16:12 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2021-04-22 20:21:05 +0000

    databases/mysql-connector-c: fix configure against CMake 3.20
    
    The CMake module code swapped an endif() and an endforeach(),
    which was never an error before.
---
 databases/mysql-connector-c/Makefile                        |  1 +
 .../files/patch-cmake_install__macros.cmake                 | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/databases/mysql-connector-c/Makefile b/databases/mysql-connector-c/Makefile
index eb07edd25e58..f14f7a7249cf 100644
--- a/databases/mysql-connector-c/Makefile
+++ b/databases/mysql-connector-c/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	mysql-connector-c
 PORTVERSION=	6.1.11
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	MYSQL/Connector-C
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
diff --git a/databases/mysql-connector-c/files/patch-cmake_install__macros.cmake b/databases/mysql-connector-c/files/patch-cmake_install__macros.cmake
new file mode 100644
index 000000000000..4debda0bd44e
--- /dev/null
+++ b/databases/mysql-connector-c/files/patch-cmake_install__macros.cmake
@@ -0,0 +1,13 @@
+--- cmake/install_macros.cmake.orig	2021-04-22 20:14:44 UTC
++++ cmake/install_macros.cmake
+@@ -362,8 +362,8 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
+         CONFIGURATIONS Release RelWithDebInfo
+         COMPONENT ${ARG_COMPONENT}
+         OPTIONAL)
+-    ENDIF()
+-  ENDFOREACH()
++    ENDFOREACH()
++  ENDIF()
+ 
+ ENDFUNCTION()
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104222025.13MKP5ta032290>