mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Look for gio when searching for libsoup with CMake.
This commit is contained in:
parent
8ae9d64d2d
commit
78a4bc737e
1 changed files with 19 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue