Index: src/libsync/CMakeLists.txt
--- src/libsync/CMakeLists.txt.orig
+++ src/libsync/CMakeLists.txt
@@ -3,12 +3,7 @@ set(LibreGraphAPIVersion v1.0.1)
 find_package(LibreGraphAPI QUIET)
 if (NOT TARGET OpenAPI::LibreGraphAPI)
     message(WARNING "Failed to find system OpenAPI::LibreGraphAPI: fetching ${LibreGraphAPIVersion}")
-    include(FetchContent)
-    FetchContent_Populate(LibreGraphAPISrc
-                        QUIET
-                        GIT_REPOSITORY https://github.com/owncloud/libre-graph-api-cpp-qt-client.git
-                        GIT_TAG ${LibreGraphAPIVersion})
-    add_subdirectory(${libregraphapisrc_SOURCE_DIR}/client ${libregraphapisrc_BINARY_DIR}/client EXCLUDE_FROM_ALL)
+    add_subdirectory(libregraphapisrc-src/client libregraphapisrc-src/client EXCLUDE_FROM_ALL)
 endif()
 
 set(libsync_SRCS
