mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
libcloudproviders: Fix build with missing pkgconfig #7240
This commit is contained in:
parent
86d36f0a78
commit
47320eaf08
@ -1,12 +1,15 @@
|
||||
find_package(Libcloudproviders)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(GIO gio-2.0)
|
||||
|
||||
# The cloudproviders feature can only be enabled if the libcloudproviders
|
||||
# and gio-2.0 libraries are available
|
||||
# and gio-2.0 libraries are available, and failure due to any missing
|
||||
# dependency should be graceful.
|
||||
set(LIBCLOUDPROVIDERS_POSSIBLE "")
|
||||
if(LIBCLOUDPROVIDERS_FOUND AND GIO_FOUND)
|
||||
set(LIBCLOUDPROVIDERS_POSSIBLE "1")
|
||||
find_package(Libcloudproviders)
|
||||
find_package(PkgConfig)
|
||||
if(LIBCLOUDPROVIDERS_FOUND AND PKG_CONFIG_FOUND)
|
||||
pkg_search_module(GIO gio-2.0)
|
||||
if(GIO_FOUND)
|
||||
set(LIBCLOUDPROVIDERS_POSSIBLE "1")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# User visible config switch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user