File: cmake-mysql.h.patch

package info (click to toggle)
mysql-connector-c%2B%2B 1.1.12-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,908 kB
  • sloc: cpp: 44,895; ansic: 2,114; php: 528; sql: 403; xml: 109; sh: 33; makefile: 11
file content (27 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: disable broken check for "mysql.h".
~~~~
CMake Error at FindMySQL.cmake:509 (message):
  Could not find "mysql.h" in
  "/usr/include/mariadb;/usr/include/mariadb/mysql" found from running
  "/usr/bin/mysql_config"
~~~~

--- a/FindMySQL.cmake
+++ b/FindMySQL.cmake
@@ -504,12 +504,12 @@
     message(FATAL_ERROR "Could not find the include dir from running "
                         "\"${MYSQL_CONFIG_EXECUTABLE}\"")
   endif()
 
-  if(NOT EXISTS "${MYSQL_INCLUDE_DIR}/mysql.h")
-    message(FATAL_ERROR "Could not find \"mysql.h\" in \"${MYSQL_INCLUDE_DIR}\" "
-                        "found from running \"${MYSQL_CONFIG_EXECUTABLE}\"")
-  endif()
+#  if(NOT EXISTS "${MYSQL_INCLUDE_DIR}/mysql.h")
+#    message(FATAL_ERROR "Could not find \"mysql.h\" in \"${MYSQL_INCLUDE_DIR}\" "
+#                        "found from running \"${MYSQL_CONFIG_EXECUTABLE}\"")
+#  endif()
 
 else()
 
   if(FINDMYSQL_DEBUG)