From 12a0e41402b7eca9f39ba77cbf700f4c0acf008c Mon Sep 17 00:00:00 2001 From: nirvn Date: Tue, 18 May 2021 12:40:26 +0700 Subject: [PATCH] Nyall and Denis know better, add the flag :) --- CMakeLists.txt | 2 ++ src/CMakeLists.txt | 5 ++++- tests/src/CMakeLists.txt | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41b71aee570..e40094e9d5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,8 @@ if(WITH_CORE) set (WITH_GUI TRUE CACHE BOOL "Determines whether QGIS GUI library (and everything built on top of it) should be built") + set (WITH_AUTH TRUE CACHE BOOL "Determines whether QGIS authentication methods should be built") + set (WITH_ANALYSIS TRUE CACHE BOOL "Determines whether QGIS analysis library should be built") set (WITH_DESKTOP TRUE CACHE BOOL "Determines whether QGIS desktop should be built") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 91f8342324c..1691c3bbbc8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,9 @@ add_subdirectory(native) add_subdirectory(core) -add_subdirectory(auth) + +if (WITH_AUTH) + add_subdirectory(auth) +endif() if (WITH_ANALYSIS) add_subdirectory(analysis) diff --git a/tests/src/CMakeLists.txt b/tests/src/CMakeLists.txt index e095b88d3b8..fce6720b575 100644 --- a/tests/src/CMakeLists.txt +++ b/tests/src/CMakeLists.txt @@ -40,7 +40,9 @@ if (ENABLE_TESTS) add_subdirectory(analysis) add_subdirectory(geometry_checker) endif() - add_subdirectory(auth) + if (WITH_AUTH) + add_subdirectory(auth) + endif() add_subdirectory(providers) if (WITH_DESKTOP) add_subdirectory(app)