summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/mariadb-cmake-compat.patch
blob: 44b0daa1866ff6100546880306a547ff470e541e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Fix if statement that triggers syntax error in CMake 3.20 and later.

Taken from upstream:
https://github.com/mariadb-corporation/mariadb-connector-c/commit/242cab8c

diff --git a/libmariadb/cmake/ConnectorName.cmake b/libmariadb/cmake/ConnectorName.cmake
--- 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}")