yuzu/externals/vcpkg/ports/ignition-cmake2/FindGTS.patch
2022-07-23 03:01:36 +02:00

32 lines
901 B
Diff
Executable File

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),