We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0fc16d6 + 71ec68b commit b4ab101Copy full SHA for b4ab101
CMakeLists.txt
@@ -108,8 +108,12 @@ IF(WITH_CORE)
108
IF (NOT WITH_GUI)
109
SET (HAVE_GUI FALSE) # used in qgsconfig.h
110
# force value of some options
111
- SET(WITH_DESKTOP FALSE)
112
- SET(WITH_CUSTOM_WIDGETS FALSE)
+ IF(WITH_DESKTOP)
+ MESSAGE(FATAL_ERROR "Desktop cannot be built without gui. Enable WITH_GUI or disable WITH_DESKTOP.")
113
+ ENDIF(WITH_DESKTOP)
114
+ IF(WITH_CUSTOM_WIDGETS)
115
+ MESSAGE(FATAL_ERROR "Custom widgets cannot be built without gui. Enable WITH_GUI or disable WITH_CUSTOM_WIDGETS.")
116
+ ENDIF(WITH_CUSTOM_WIDGETS)
117
ELSE ()
118
SET (HAVE_GUI TRUE) # used in qgsconfig.h
119
ENDIF()
0 commit comments