Skip to content

Commit

Permalink
Fix GIO/gnunixmounts.h error on NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
paperdigits authored and TurboGit committed Dec 29, 2021
1 parent c4e00c2 commit 58d247f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/FindGIO.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(LibFindMacros)
libfind_package(GIO Glib)

# Use pkg-config to get hints about paths
libfind_pkg_check_modules(GIO_PKGCONF gio-2.0)
libfind_pkg_check_modules(GIO_PKGCONF gio-2.0 gio-unix-2.0)

# Find the library
find_library(GIO_LIBRARY
Expand All @@ -23,3 +23,5 @@ find_library(GIO_LIBRARY
# NOTE: Singular variables for this library, plural for libraries this lib depends on.
libfind_process(GIO)

list(APPEND GIO_INCLUDE_DIRS ${GIO_PKGCONF_INCLUDE_DIRS})

0 comments on commit 58d247f

Please sign in to comment.