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.
This commit is contained in:
Adriaan de Groot
2021-04-22 22:16:12 +02:00
parent 2c0b236eae
commit e75ad72a3c
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -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()