fix cmake error when building with -DMYSQL=ON

This commit is contained in:
melon 2024-01-31 01:07:47 +01:00
parent d60852a020
commit dc85b2d73e

View file

@ -4,7 +4,7 @@ if(NOT CMAKE_CROSSCOMPILING)
) )
if(MYSQL_CONFIG) if(MYSQL_CONFIG)
exec_program(${MYSQL_CONFIG} execute_process(COMMAND ${MYSQL_CONFIG}
ARGS --include ARGS --include
OUTPUT_VARIABLE MY_TMP OUTPUT_VARIABLE MY_TMP
) )
@ -13,7 +13,7 @@ if(NOT CMAKE_CROSSCOMPILING)
set(MYSQL_CONFIG_INCLUDE_DIR ${MY_TMP} CACHE FILEPATH INTERNAL) set(MYSQL_CONFIG_INCLUDE_DIR ${MY_TMP} CACHE FILEPATH INTERNAL)
exec_program(${MYSQL_CONFIG} execute_process(COMMAND ${MYSQL_CONFIG}
ARGS --libs_r ARGS --libs_r
OUTPUT_VARIABLE MY_TMP OUTPUT_VARIABLE MY_TMP
) )