From 542faab9591cbeddbfb45bcb6c85c3f4a088cf07 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 30 Nov 2011 16:50:23 +0100 Subject: [PATCH] Hopefully fix linking on newer Ubuntus. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index db96ab9c4..15538a028 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1086,7 +1086,7 @@ if (LINUX) # they end up getting ignored. This appends them to the very end of the link # line, ensuring they're always used. find_package(X11) - target_link_libraries(clementine_lib ${X11_X11_LIB}) + target_link_libraries(clementine_lib ${X11_X11_LIB} ${CMAKE_DL_LIBS}) endif (LINUX) add_dependencies(clementine_lib qtsingleapplication)