From fd13c120e720a772cc10bb99c09e8f46b63a5050 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 23 Jun 2021 11:54:30 +0200 Subject: [PATCH] libmariadb: fix compilation cmake issue This patch fixes the compilation issue of the upstream Cmake file. If this patch is not applied we get the following compilation error output. CMake Error at cmake/ConnectorName.cmake:30 (ENDMACRO): Flow control statements are not properly nested. Call Stack (most recent call first): CMakeLists.txt:423 (INCLUDE) The blamed cmake/ConnectorName.cmake file gets fixed with this patch. Signed-off-by: Florian Eckert --- .../patches/0001-libmariadb-fix-cmake.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libs/libmariadb/patches/0001-libmariadb-fix-cmake.patch diff --git a/libs/libmariadb/patches/0001-libmariadb-fix-cmake.patch b/libs/libmariadb/patches/0001-libmariadb-fix-cmake.patch new file mode 100644 index 0000000000..01dd24602d --- /dev/null +++ b/libs/libmariadb/patches/0001-libmariadb-fix-cmake.patch @@ -0,0 +1,11 @@ +--- a/cmake/ConnectorName.cmake ++++ b/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}") -- 2.30.2