CMake: move GTK+ check into wxWidgets

This commit is contained in:
Michael Maltese
2017-04-24 14:10:10 -07:00
parent 8e7648f42a
commit 6197d9622f
2 changed files with 2 additions and 24 deletions

View File

@ -860,6 +860,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD")
if (NOT X11_xf86vmode_FOUND OR NOT X11_Xinerama_FOUND)
message(FATAL_ERROR "wxGTK2 needs Xinerama and Xxf86vm")
endif()
find_package(GTK2 REQUIRED)
target_include_directories(wx PUBLIC ${GTK2_INCLUDE_DIRS})
target_link_libraries(wx PRIVATE
png
${GTHREAD2_LIBRARIES}