mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-06-21 01:07:11 +02:00
Update CMakeLists.txt
This commit is contained in:
+5
-7
@@ -34,15 +34,13 @@ if(WIN32)
|
|||||||
target_compile_definitions(DataMySQL PUBLIC __LCC__) #__LCC__ define used by MySQL.h
|
target_compile_definitions(DataMySQL PUBLIC __LCC__) #__LCC__ define used by MySQL.h
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Some instalations don't have mysql_reset_connection() even if their version indicates otherwise
|
||||||
|
# Debian 9 (Stretch) is one such example
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
include(CheckSymbolExists)
|
file(STRINGS "${MYSQL_INCLUDE_DIR}/mysql.h" lines REGEX "mysql_reset_connection")
|
||||||
# Some instalations don't have mysql_reset_connection() even if their version indicates otherwise
|
if(lines)
|
||||||
CHECK_SYMBOL_EXISTS(mysql_reset_connection "${MYSQL_INCLUDE_DIR}/mysql.h" HAVE_MYSQL_RESET_CONNECTION)
|
|
||||||
|
|
||||||
if(HAVE_MYSQL_RESET_CONNECTION)
|
|
||||||
message(status "Found: mysql_reset_connection")
|
|
||||||
target_compile_definitions(DataMySQL PRIVATE HAVE_MYSQL_RESET_CONNECTION)
|
target_compile_definitions(DataMySQL PRIVATE HAVE_MYSQL_RESET_CONNECTION)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
POCO_INSTALL(DataMySQL)
|
POCO_INSTALL(DataMySQL)
|
||||||
|
|||||||
Reference in New Issue
Block a user