diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 3fcffba00c6..532eb7120bc 100755 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -153,6 +153,7 @@ messages( else() if(BUILD_GUI) message(STATUS "QT5 not found. GUI is disabled") + set(BUILD_GUI OFF CACHE BOOL "Build the GUI" FORCE) else() message(STATUS "GUI is not enabled") endif()