Fix Linux build: search for gthread-2.0 and pangocairo, then add both these libs to wx dependencies

This commit is contained in:
Pierre Bourdon
2012-03-23 01:06:45 +01:00
parent c0992cc73e
commit 5242f09104
3 changed files with 10 additions and 2 deletions

View File

@ -508,6 +508,10 @@ if(NOT DISABLE_WX)
add_definitions(-D__WXOSX_COCOA__)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-D__WXGTK__)
# Check for required libs
check_lib(GTHREAD2 gthread-2.0 glib/gthread.h REQUIRED)
check_lib(PANGOCAIRO pangocairo pango/pangocairo.h REQUIRED)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_definitions(-D__WXMSW__)
else()