Try to get gtk3 detection working via pkg-config

(not yet working).

svn path=/trunk/; revision=52432
This commit is contained in:
Jörg Mayer 2013-10-07 00:25:43 +00:00
parent 05908dea85
commit 6013cbd4f5
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@ FindWSWinLibs("gtk3" "GTK3_HINTS")
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
FIND_PACKAGE(PkgConfig)
set( ENV{PKG_CONFIG_PATH} ${GTK3_HINTS}/lib/pkgconfig )
PKG_CHECK_MODULES(PC_GTK3 gtk+-3.0 QUIET)
# MESSAGE(STATUS "PC_GTK3_LIBRARIES: ${PC_GTK3_LIBRARIES}")
@ -40,7 +41,6 @@ if( NOT PC_GTK3_FOUND )
FIND_PATH(GTK3_INCLUDE_DIR
NAMES
"gtk/gtk.h"
"gtk.h"
HINTS
${GTK3_HINTS}/include
${PC_GTK3_INCLUDEDIR}