From 6f613fb70ff28ee090dc0871b461a62bd2aa0d08 Mon Sep 17 00:00:00 2001 From: Kyle Ambroff Date: Fri, 26 Jun 2009 23:47:36 +0000 Subject: Fix broken Linux server build. llwindow refactoring in skinning-7 r117641 added dependency on LLWindowCallbacks in llwindowheadless, which was not being built for server only builds. * Include llwindowcallbacks.cpp in all llwindow builds. * Do not link with libatk and libsdl for server linux builds, since they are not needed and only packaged for the viewer. Reviewed with James. --- indra/llwindow/CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'indra/llwindow/CMakeLists.txt') diff --git a/indra/llwindow/CMakeLists.txt b/indra/llwindow/CMakeLists.txt index f5d06b7258..b80080e458 100644 --- a/indra/llwindow/CMakeLists.txt +++ b/indra/llwindow/CMakeLists.txt @@ -35,6 +35,7 @@ include_directories( set(llwindow_SOURCE_FILES llkeyboard.cpp llwindowheadless.cpp + llwindowcallbacks.cpp ) set(llwindow_HEADER_FILES @@ -42,27 +43,28 @@ set(llwindow_HEADER_FILES llkeyboard.h llwindowheadless.h + llwindowcallbacks.h ) set(viewer_SOURCE_FILES llwindow.cpp llmousehandler.cpp - llwindowcallbacks.cpp ) set(viewer_HEADER_FILES llwindow.h - llwindowcallbacks.h llpreeditor.h llmousehandler.h ) # Libraries on which this library depends, needed for Linux builds # Sort by high-level to low-level -set(llwindow_LINK_LIBRARIES - ${UI_LIBRARIES} # for GTK - ${SDL_LIBRARY} - ) +if (NOT LINUX OR VIEWER) + set(llwindow_LINK_LIBRARIES + ${UI_LIBRARIES} # for GTK + ${SDL_LIBRARY} + ) +endif (VIEWER) if (DARWIN) list(APPEND llwindow_SOURCE_FILES @@ -85,7 +87,7 @@ if (DARWIN) ) endif (DARWIN) -if (LINUX) +if (LINUX AND VIEWER) list(APPEND viewer_SOURCE_FILES llkeyboardsdl.cpp llwindowsdl.cpp -- cgit v1.2.3