1 diff --git a/cmake/FindGTS.cmake b/cmake/FindGTS.cmake
2 index ad00a9715..a83d8af40 100644
3 --- a/cmake/FindGTS.cmake
4 +++ b/cmake/FindGTS.cmake
5 @@ -67,6 +67,26 @@ else()
6 # 2.1 Need glib library
7 find_library(GLIB_LIBRARY glib-2.0)
8 list(APPEND GTS_LIBRARIES "${GLIB_LIBRARY}")
9 + find_path(GLIB_INCLUDE_DIRS glib.h
11 + ${CMAKE_FIND_ROOT_PATH}
13 + ${CMAKE_FIND_ROOT_PATH}
17 + DOC "glib header include dir"
19 + find_path(GLIB_CONFIG_INCLUDE_DIRS glibconfig.h
21 + ${CMAKE_FIND_ROOT_PATH}
23 + ${CMAKE_FIND_ROOT_PATH}
25 + lib/glib-2.0/include
26 + doc "glib header include dir"
28 + list(APPEND GTS_INCLUDE_DIRS ${GLIB_INCLUDE_DIRS} ${GLIB_CONFIG_INCLUDE_DIRS})
31 # We need to manually specify the pkgconfig entry (and type of entry),