Commit 79d185f9 authored by Sergey Petrunya's avatar Sergey Petrunya

Fix compilation: tests/async_queries links againist client library, and

must use C++ linking due to client library using SSL library, which needs
C++ linking
parent 1b3a5dee
...@@ -34,4 +34,6 @@ FIND_LIBRARY(EVENT_LIBRARY event) ...@@ -34,4 +34,6 @@ FIND_LIBRARY(EVENT_LIBRARY event)
IF(HAVE_EVENT_H AND EVENT_LIBRARY) IF(HAVE_EVENT_H AND EVENT_LIBRARY)
ADD_EXECUTABLE(async_queries async_queries.c) ADD_EXECUTABLE(async_queries async_queries.c)
TARGET_LINK_LIBRARIES(async_queries mysqlclient ${EVENT_LIBRARY}) TARGET_LINK_LIBRARIES(async_queries mysqlclient ${EVENT_LIBRARY})
SET_TARGET_PROPERTIES(async_queries PROPERTIES LINKER_LANGUAGE CXX)
ENDIF() ENDIF()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment