mysql needs CONF_SQL defined everywhere

This commit is contained in:
def 2017-07-23 01:36:36 +02:00
parent ec885f3e25
commit 3de72f66e3

View file

@ -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})