From 36f98a11281d25a3a5b563e56f7469e59d585b26 Mon Sep 17 00:00:00 2001 From: Josua Grawitter Date: Wed, 7 Jul 2010 17:35:29 +0200 Subject: [PATCH 1/2] Fix build error for clientconsole pthreads is now linked. Signed-off-by: Josua Grawitter --- apps/clientconsole/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/clientconsole/CMakeLists.txt b/apps/clientconsole/CMakeLists.txt index f030d9024..c3bdfd499 100644 --- a/apps/clientconsole/CMakeLists.txt +++ b/apps/clientconsole/CMakeLists.txt @@ -1,3 +1,4 @@ +find_package(Threads REQUIRED) add_executable(clientconsole client.cpp) -target_link_libraries(clientconsole ${Boost_LIBRARIES}) +target_link_libraries(clientconsole ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) From b9f349cf303b782a38ad765952edd89275e17aa4 Mon Sep 17 00:00:00 2001 From: Josua Grawitter Date: Thu, 8 Jul 2010 13:13:10 +0200 Subject: [PATCH 2/2] Explicitly link MyGUI to it's dependencies Again courtesy of "ld --no-add-needed" by Fedora 13. Maybe we should send this upstream to the MyGUI developers. Signed-off-by: Josua Grawitter --- extern/mygui_3.0.1/MyGUIEngine/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extern/mygui_3.0.1/MyGUIEngine/CMakeLists.txt b/extern/mygui_3.0.1/MyGUIEngine/CMakeLists.txt index 4ca3a5575..2089470b4 100644 --- a/extern/mygui_3.0.1/MyGUIEngine/CMakeLists.txt +++ b/extern/mygui_3.0.1/MyGUIEngine/CMakeLists.txt @@ -24,3 +24,5 @@ if (MYGUI_USE_FREETYPE) ${FREETYPE_LIBRARIES} ) endif() + +target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS} uuid)