CMake/WX: specify PRIVATE for target_link_libraries

This commit is contained in:
Léo Lam 2017-04-26 20:24:21 +02:00
parent fa0c61eb6d
commit 831ae6a962
1 changed files with 2 additions and 2 deletions

View File

@ -105,11 +105,11 @@ 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 ${GTK2_LIBRARIES})
target_link_libraries(dolphin-emu PRIVATE ${GTK2_LIBRARIES})
target_include_directories(dolphin-emu PRIVATE ${GTK2_INCLUDE_DIRS})
endif()