Skip to content
Permalink
Browse files

allow to build without analysis

  • Loading branch information
3nids committed Dec 3, 2018
1 parent dcba255 commit efd1fd6d598ca0257aa4c32d2aa1326ab49daa39
Showing with 8 additions and 2 deletions.
  1. +6 −0 CMakeLists.txt
  2. +2 −2 src/CMakeLists.txt
@@ -112,6 +112,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_ANALYSIS TRUE CACHE BOOL "Determines whether QGIS analysis library")

SET (WITH_DESKTOP TRUE CACHE BOOL "Determines whether QGIS desktop should be built")

SET (WITH_3D FALSE CACHE BOOL "Determines whether QGIS 3D library should be built")
@@ -145,6 +147,10 @@ IF(WITH_CORE)
SET (HAVE_GUI TRUE) # used in qgsconfig.h
ENDIF()

IF ( WITH_DESKTOP AND NOT WITH_ANALYSIS )
MESSAGE(FATAL_ERROR "Desktop cannot be built without analysis")
ENDIF()

# try to configure and build MDAL support
SET (WITH_INTERNAL_MDAL TRUE CACHE BOOL "Determines whether MDAL support should be built")
IF (NOT WITH_INTERNAL_MDAL)
@@ -1,9 +1,9 @@
ADD_SUBDIRECTORY(native)
ADD_SUBDIRECTORY(core)

IF (NOT IOS)
IF (WITH_ANALYSIS)
ADD_SUBDIRECTORY(analysis)
ENDIF (NOT IOS)
ENDIF (WITH_ANALYSIS)

IF (WITH_GUI)
ADD_SUBDIRECTORY(ui)

0 comments on commit efd1fd6

Please sign in to comment.
You can’t perform that action at this time.