mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
mysql needs CONF_SQL defined everywhere
This commit is contained in:
parent
ec885f3e25
commit
3de72f66e3
|
@ -361,12 +361,6 @@ add_executable(${TARGET_SERVER}
|
|||
target_link_libraries(${TARGET_SERVER} ${LIBS_SERVER})
|
||||
list(APPEND TARGETS_OWN ${TARGET_SERVER})
|
||||
|
||||
if(MYSQL)
|
||||
target_compile_definitions(${TARGET_SERVER} PRIVATE -DCONF_SQL)
|
||||
target_include_directories(${TARGET_SERVER} PRIVATE ${MYSQL_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
|
||||
########################################################################
|
||||
# VARIOUS TARGETS
|
||||
########################################################################
|
||||
|
@ -476,6 +470,10 @@ foreach(target ${TARGETS_OWN})
|
|||
if(WEBSOCKETS)
|
||||
target_compile_definitions(${target} PRIVATE CONF_WEBSOCKETS)
|
||||
endif()
|
||||
if(MYSQL)
|
||||
target_compile_definitions(${target} PRIVATE CONF_SQL)
|
||||
target_include_directories(${target} PRIVATE ${MYSQL_INCLUDE_DIRS})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
foreach(target ${TARGETS_DEP})
|
||||
|
|
Loading…
Reference in a new issue