diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index b6da129709..ff296ff542 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -11,7 +11,8 @@ set(LIBS core sfml-network wiiuse SDL - GL) + GL + ${XRANDR_LIBS}) if(wxWidgets_FOUND) set(MEMCARDSRCS Src/MemcardManager.cpp @@ -49,7 +50,9 @@ if(wxWidgets_FOUND) debugger_ui_util inputuicommon memcard - ${wxWidgets_LIBRARIES}) + ${wxWidgets_LIBRARIES} + ${GTK2_LIBRARIES} + ${X11_LIBRARIES}) else(wxWidgets_FOUND) set(SRCS ${SRCS} @@ -57,10 +60,6 @@ else(wxWidgets_FOUND) Src/cmdline.c) endif() -if(XRANDR_FOUND) - set(LIBS ${LIBS} ${XRANDR_LIBRARIES}) -endif(XRANDR_FOUND) - if(WIN32) set(SRCS ${SRCS} Src/stdafx.cpp) elseif((${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND NOT wxWidgets_FOUND)