1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update CMakeLists.txt

This commit is contained in:
Sandu Liviu Catalin 2021-08-22 19:05:32 +03:00
parent 94f4459d5b
commit 21c9797d1a

View File

@ -37,7 +37,7 @@ endif()
# Some instalations don't have mysql_reset_connection() even if their version indicates otherwise # Some instalations don't have mysql_reset_connection() even if their version indicates otherwise
# Debian 9 (Stretch) is one such example # Debian 9 (Stretch) is one such example
if(UNIX) if(UNIX)
file(STRINGS "${MYSQL_INCLUDE_DIR}/mysql.h" lines REGEX "mysql_reset_connection") file(STRINGS "${MYSQL_INCLUDE_DIR}/mysql/mysql.h" lines REGEX "mysql_reset_connection")
if(lines) if(lines)
target_compile_definitions(DataMySQL PRIVATE HAVE_MYSQL_RESET_CONNECTION) target_compile_definitions(DataMySQL PRIVATE HAVE_MYSQL_RESET_CONNECTION)
endif() endif()