mariadb: fix cmake issue
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 26 Jun 2021 21:10:37 +0000 (23:10 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 26 Jun 2021 21:11:53 +0000 (23:11 +0200)
Same fix that went into libmariadb package with commit fd13c12.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
utils/mariadb/patches/210-libmariadb-fix-cmake.patch [new file with mode: 0644]

diff --git a/utils/mariadb/patches/210-libmariadb-fix-cmake.patch b/utils/mariadb/patches/210-libmariadb-fix-cmake.patch
new file mode 100644 (file)
index 0000000..2b28bfb
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libmariadb/cmake/ConnectorName.cmake
++++ b/libmariadb/cmake/ConnectorName.cmake
+@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
+     SET(MACHINE_NAME "x64")
+   ELSE()
+     SET(MACHINE_NAME "32")
+-  END()
++  ENDIF()
+ ENDIF()
+ SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")