Skip to content

Commit

Permalink
Qt: Fix and clarify OpenGL checks for Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Aug 1, 2015
1 parent 4e3bad6 commit 88ff7ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/platform/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ endif()
find_package(Qt5OpenGL)
find_package(Qt5Widgets)

if(NOT Qt5OpenGL_FOUND OR NOT Qt5Widgets_FOUND OR NOT OPENGL_FOUND)
if(NOT BUILD_GL AND NOT BUILD_GLES2)
message(WARNING "OpenGL is required to build the Qt port")
set(BUILD_QT OFF PARENT_SCOPE)
return()
endif()

if(NOT Qt5OpenGL_FOUND OR NOT Qt5Widgets_FOUND)
message(WARNING "Cannot find Qt modules")
set(BUILD_QT OFF PARENT_SCOPE)
return()
Expand Down

0 comments on commit 88ff7ed

Please sign in to comment.