yuzu/externals/vcpkg/ports/ignition-cmake2/FindGTS.patch

32 lines
901 B
Diff
Raw Normal View History

2022-07-23 05:01:36 +04:00
diff --git a/cmake/FindGTS.cmake b/cmake/FindGTS.cmake
index ad00a9715..a83d8af40 100644
--- a/cmake/FindGTS.cmake
+++ b/cmake/FindGTS.cmake
@@ -67,6 +67,26 @@ else()
# 2.1 Need glib library
find_library(GLIB_LIBRARY glib-2.0)
list(APPEND GTS_LIBRARIES "${GLIB_LIBRARY}")
+ find_path(GLIB_INCLUDE_DIRS glib.h
+ HINTS
+ ${CMAKE_FIND_ROOT_PATH}
+ PATH
+ ${CMAKE_FIND_ROOT_PATH}
+ PATH_SUFFIXES
+ include
+ include/glib-2.0
+ DOC "glib header include dir"
+ )
+ find_path(GLIB_CONFIG_INCLUDE_DIRS glibconfig.h
+ HINTS
+ ${CMAKE_FIND_ROOT_PATH}
+ PATHS
+ ${CMAKE_FIND_ROOT_PATH}
+ PATH_SUFFIXES
+ lib/glib-2.0/include
+ doc "glib header include dir"
+ )
+ list(APPEND GTS_INCLUDE_DIRS ${GLIB_INCLUDE_DIRS} ${GLIB_CONFIG_INCLUDE_DIRS})
if (GTS_FOUND)
# We need to manually specify the pkgconfig entry (and type of entry),