diff --git a/CMakeLists.txt b/CMakeLists.txt index 356798ae8..d8efeb675 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,14 +126,6 @@ endif() find_package(OpenSSL 1.0.0 REQUIRED) -if(NOT TOKEN_AUTH_ONLY) - if (Qt5Core_DIR) - find_package(Qt5Keychain REQUIRED) - else() - find_package(QtKeychain REQUIRED) - endif() -endif() - if(APPLE) find_package(Sparkle) endif(APPLE) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 923c5b36b..b28797702 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,6 +23,14 @@ if (APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") endif() +if(NOT TOKEN_AUTH_ONLY) + if (Qt5Core_DIR) + find_package(Qt5Keychain REQUIRED) + else() + find_package(QtKeychain REQUIRED) + endif() +endif() + add_subdirectory(libsync) if (NOT BUILD_LIBRARIES_ONLY) add_subdirectory(gui)