early-access version 2853
This commit is contained in:
31
externals/vcpkg/ports/ignition-cmake2/FindGTS.patch
vendored
Executable file
31
externals/vcpkg/ports/ignition-cmake2/FindGTS.patch
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
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),
|
||||
Reference in New Issue
Block a user