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-02-01 03:41:05 +02:00
parent 8b686330da
commit 8c4d9a0269

View File

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