From 79d185f9fa6a6758338768a70a2675eccbb4d4e0 Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Fri, 5 Jul 2013 16:45:22 +0400 Subject: [PATCH] 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 --- tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0acad6bf30b..a43caf5b4f3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -34,4 +34,6 @@ FIND_LIBRARY(EVENT_LIBRARY event) IF(HAVE_EVENT_H AND EVENT_LIBRARY) ADD_EXECUTABLE(async_queries async_queries.c) TARGET_LINK_LIBRARIES(async_queries mysqlclient ${EVENT_LIBRARY}) + SET_TARGET_PROPERTIES(async_queries PROPERTIES LINKER_LANGUAGE CXX) + ENDIF()