Skip to content
Permalink
Browse files

Do not silently disable cmake options

  • Loading branch information
m-kuhn committed Sep 19, 2018
1 parent 0fc16d6 commit 71ec68b7429668a7cfbf616f288e0809d8db0d5a
Showing with 6 additions and 2 deletions.
  1. +6 −2 CMakeLists.txt
@@ -108,8 +108,12 @@ IF(WITH_CORE)
IF (NOT WITH_GUI)
SET (HAVE_GUI FALSE) # used in qgsconfig.h
# force value of some options
SET(WITH_DESKTOP FALSE)
SET(WITH_CUSTOM_WIDGETS FALSE)
IF(WITH_DESKTOP)
MESSAGE(FATAL_ERROR "Desktop cannot be built without gui. Enable WITH_GUI or disable WITH_DESKTOP.")
ENDIF(WITH_DESKTOP)
IF(WITH_CUSTOM_WIDGETS)
MESSAGE(FATAL_ERROR "Custom widgets cannot be built without gui. Enable WITH_GUI or disable WITH_CUSTOM_WIDGETS.")
ENDIF(WITH_CUSTOM_WIDGETS)
ELSE ()
SET (HAVE_GUI TRUE) # used in qgsconfig.h
ENDIF()

0 comments on commit 71ec68b

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