From: Modestas Vainius <modestas@vainius.eu>
Subject: [PATCH] OpenSSL is not needed to link against mysql(e) library

Fix link libraries for MySQL(e) from Debian.

Signed-off-by: Modestas Vainius <modestas@vainius.eu>

---
 .../sqlcollection/mysqlecollection/CMakeLists.txt  |    3 ---
 .../mysqlservercollection/CMakeLists.txt           |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/core-impl/collections/sqlcollection/mysqlecollection/CMakeLists.txt b/src/core-impl/collections/sqlcollection/mysqlecollection/CMakeLists.txt
index 3f6d951..4a1ac94 100644
--- a/src/core-impl/collections/sqlcollection/mysqlecollection/CMakeLists.txt
+++ b/src/core-impl/collections/sqlcollection/mysqlecollection/CMakeLists.txt
@@ -6,7 +6,6 @@ include_directories(
         ..
         ${CMAKE_SOURCE_DIR}/src
         ${QT_QTCORE_INCLUDES}
-        ${OPENSSL_INCLUDE_DIR}
         ${MYSQL_INCLUDE_DIR}
         )
 
@@ -32,14 +31,12 @@ target_link_libraries(amarok_collection-mysqlecollection
     ${KDE4_KDECORE_LIBS}
     ${QT_QTCORE_LIBRARY}
     ${QT_QTGUI_LIBRARY}
-    ${OPENSSL_LIBRARIES}
     ${MYSQL_EMBEDDED_LIBRARIES}
     ${CMAKE_DL_LIBS}
     ${ZLIB_LIBRARIES}
 )
 
 if(NOT WIN32)
-    target_link_libraries(amarok_collection-mysqlecollection crypto ssl)
     if(NOT APPLE)
         target_link_libraries(amarok_collection-mysqlecollection crypt pthread)
     endif(NOT APPLE)
diff --git a/src/core-impl/collections/sqlcollection/mysqlservercollection/CMakeLists.txt b/src/core-impl/collections/sqlcollection/mysqlservercollection/CMakeLists.txt
index 456659f..fbcd827 100644
--- a/src/core-impl/collections/sqlcollection/mysqlservercollection/CMakeLists.txt
+++ b/src/core-impl/collections/sqlcollection/mysqlservercollection/CMakeLists.txt
@@ -7,7 +7,6 @@ include_directories(
         ${CMAKE_SOURCE_DIR}/src
         ${CMAKE_BINARY_DIR}/src
         ${QTIQTCORE_INCLUDES}
-        ${OPENSSL_INCLUDE_DIR}
         ${MYSQL_INCLUDE_DIR}
         )
 
@@ -32,14 +31,12 @@ target_link_libraries(amarok_collection-mysqlservercollection
     ${KDE4_KDECORE_LIBS}
     ${QT_QTCORE_LIBRARY}
     ${QT_QTGUI_LIBRARY}
-    ${OPENSSL_LIBRARIES}
     ${MYSQL_LIBRARIES}
     ${CMAKE_DL_LIBS}
     ${ZLIB_LIBRARIES}
 )
 
 if(NOT WIN32)
-    target_link_libraries(amarok_collection-mysqlservercollection crypto ssl)
     if(NOT APPLE)
         target_link_libraries(amarok_collection-mysqlservercollection crypt pthread)
     endif(NOT APPLE)
-- 
tg: (7c3cfa4..) debian/mysql_no_openssl_fix (depends on: upstream)
