Source: mysql-connector-c++
Version: 1.1.9-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
mysql-connector-c++ fails to cross build from source, because running
cmake fails with an error while processing the if on CMakeLists.txt line
70. When using variables in an if, they should be either unexpanded
(VAR) or quoted ("${VAR}"), but not unquoted expanded (${VAR}), because
an empty variable results in a syntax error after unquoted expansion.
The attached patch fixes that and makes mysql-connector-c++ cross build
successfully. Please consider applying it.
Helmut
--- mysql-connector-c++-1.1.9.orig/CMakeLists.txt
+++ mysql-connector-c++-1.1.9/CMakeLists.txt
@@ -67,8 +67,8 @@
# CPPFLAGS, CXXFLAGS and LDFLAGS from the environment
SET(FreeBSD11Up False)
-if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND
- ${CMAKE_SYSTEM_VERSION} GREATER "10")
+if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND
+ CMAKE_SYSTEM_VERSION GREATER "10")
SET(FreeBSD11Up True)
endif()