Add gio_unix include path to external_glib
This commit is contained in:
parent
a00057a45e
commit
80e188984a
1 changed files with 3 additions and 0 deletions
3
external/glib/CMakeLists.txt
vendored
3
external/glib/CMakeLists.txt
vendored
|
|
@ -11,10 +11,12 @@ find_package(PkgConfig REQUIRED)
|
|||
pkg_check_modules(GLIB2 REQUIRED IMPORTED_TARGET glib-2.0)
|
||||
pkg_check_modules(GOBJECT REQUIRED IMPORTED_TARGET gobject-2.0)
|
||||
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
|
||||
pkg_check_modules(GIO_UNIX REQUIRED IMPORTED_TARGET gio-unix-2.0)
|
||||
|
||||
if (DESKTOP_APP_USE_PACKAGED)
|
||||
target_link_libraries(external_glib
|
||||
INTERFACE
|
||||
PkgConfig::GIO_UNIX
|
||||
PkgConfig::GIO
|
||||
PkgConfig::GOBJECT
|
||||
PkgConfig::GLIB2
|
||||
|
|
@ -22,6 +24,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
else()
|
||||
target_include_directories(external_glib
|
||||
INTERFACE
|
||||
${GIO_UNIX_INCLUDE_DIRS}
|
||||
${GIO_INCLUDE_DIRS}
|
||||
${GOBJECT_INCLUDE_DIRS}
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue