diff --git a/cmake/SelectPcsx2Plugins.cmake b/cmake/SelectPcsx2Plugins.cmake index 5f1c3d7063..350ce2f953 100644 --- a/cmake/SelectPcsx2Plugins.cmake +++ b/cmake/SelectPcsx2Plugins.cmake @@ -230,7 +230,7 @@ endif() # requires: -SDL # -X11 #--------------------------------------- -if(GTKn_FOUND AND SDLn_FOUND AND X11_FOUND) +if(wxWidgets_FOUND AND GTKn_FOUND AND SDLn_FOUND AND X11_FOUND) set(onepad TRUE) elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/onepad") set(onepad FALSE) diff --git a/plugins/onepad/CMakeLists.txt b/plugins/onepad/CMakeLists.txt index 46ed79e2e2..2ac186408c 100644 --- a/plugins/onepad/CMakeLists.txt +++ b/plugins/onepad/CMakeLists.txt @@ -98,6 +98,7 @@ endif() set(onepadFinalLibs ${onepadFinalLibs} + ${wxWidgets_LIBRARIES} ${GTK2_LIBRARIES} ${X11_LIBRARIES} )