Merge pull request #5324 from leoetlino/build-fix

WX: Build fix
This commit is contained in:
Léo Lam 2017-04-26 20:30:51 +02:00 committed by GitHub
commit 560c66f9c6
1 changed files with 7 additions and 1 deletions

View File

@ -105,7 +105,13 @@ if(WIN32)
endif()
add_executable(dolphin-emu ${SRCS})
target_link_libraries(dolphin-emu ${LIBS})
target_link_libraries(dolphin-emu PRIVATE ${LIBS})
if(USE_X11)
find_package(GTK2 REQUIRED)
target_link_libraries(dolphin-emu PRIVATE ${GTK2_LIBRARIES})
target_include_directories(dolphin-emu PRIVATE ${GTK2_INCLUDE_DIRS})
endif()
# Handle localization
find_package(Gettext)