From 30294e0c9a80eff1e6ae0cd842461d406324e2e6 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 18 Dec 2018 11:28:25 +0100 Subject: [PATCH] Vfs: Have a static list of potential plugins for now Fixes in-source builds and other cases where more non-plugin directories are created in src/libsync/vfs. --- src/libsync/vfs/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libsync/vfs/CMakeLists.txt b/src/libsync/vfs/CMakeLists.txt index ee1d1dbb4..306988f46 100644 --- a/src/libsync/vfs/CMakeLists.txt +++ b/src/libsync/vfs/CMakeLists.txt @@ -1,4 +1,8 @@ -file(GLOB vfsPlugins RELATIVE ${CMAKE_CURRENT_LIST_DIR} "*") +# Globbing for plugins has a problem with in-source builds +# that create directories for the build. +#file(GLOB vfsPlugins RELATIVE ${CMAKE_CURRENT_LIST_DIR} "*") + +SET(vfsPlugins "suffix;win") foreach(vfsPlugin ${vfsPlugins}) if(NOT IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/${vfsPlugin}")