mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
fix cmake error when building with -DMYSQL=ON
This commit is contained in:
parent
d60852a020
commit
dc85b2d73e
|
@ -4,7 +4,7 @@ if(NOT CMAKE_CROSSCOMPILING)
|
|||
)
|
||||
|
||||
if(MYSQL_CONFIG)
|
||||
exec_program(${MYSQL_CONFIG}
|
||||
execute_process(COMMAND ${MYSQL_CONFIG}
|
||||
ARGS --include
|
||||
OUTPUT_VARIABLE MY_TMP
|
||||
)
|
||||
|
@ -13,7 +13,7 @@ if(NOT CMAKE_CROSSCOMPILING)
|
|||
|
||||
set(MYSQL_CONFIG_INCLUDE_DIR ${MY_TMP} CACHE FILEPATH INTERNAL)
|
||||
|
||||
exec_program(${MYSQL_CONFIG}
|
||||
execute_process(COMMAND ${MYSQL_CONFIG}
|
||||
ARGS --libs_r
|
||||
OUTPUT_VARIABLE MY_TMP
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue