Commit 78a4bc73 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Look for gio when searching for libsoup with CMake.

parent 8ae9d64d
......@@ -40,8 +40,16 @@ find_path(SOUP_INCLUDE_DIRS
)
if(SOUP_INCLUDE_DIRS)
set(HAVE_LIBSOUP_SOUP_H 1)
list(APPEND SOUP_INCLUDE_DIRS ${GTK2_INCLUDE_DIRS})
find_path(GIO_INCLUDE_DIRS
NAMES gio/gio.h
HINTS _SOUP_ROOT_PATHS
PATH_SUFFIXES include/glib-2.0
)
if(GIO_INCLUDE_DIRS)
set(HAVE_LIBSOUP_SOUP_H 1)
list(APPEND SOUP_INCLUDE_DIRS ${GIO_INCLUDE_DIRS} ${GTK2_INCLUDE_DIRS})
endif()
endif()
find_library(SOUP_LIBRARIES
......@@ -51,7 +59,15 @@ find_library(SOUP_LIBRARIES
)
if(SOUP_LIBRARIES)
list(APPEND SOUP_LIBRARIES ${GTK2_LIBRARIES})
find_library(GIO_LIBRARIES
NAMES gio-2.0
HINTS ${_SOUP_ROOT_PATHS}
PATH_SUFFIXES bin lib
)
if(GIO_LIBRARIES)
list(APPEND SOUP_LIBRARIES ${GIO_LIBRARIES} ${GTK2_LIBRARIES})
endif()
endif()
include(FindPackageHandleStandardArgs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment