Skip to content

Commit

Permalink
No OpenGL on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 3, 2024
1 parent 760b105 commit 0d2dfaa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Expand Up @@ -137,11 +137,12 @@ if (ANDROID)
endif()
endif()

find_package(${QT_PKG} COMPONENTS Concurrent Core Qml Gui Xml Positioning Widgets Network Quick Svg OpenGL Sql Sensors WebView Multimedia REQUIRED)
find_package(${QT_PKG} COMPONENTS Concurrent Core Qml Gui Xml Positioning Widgets Network Quick Svg Sql Sensors WebView Multimedia REQUIRED)

# PrintSupport isn't required, because it doesn't exist for ios
# qgis will deal with it an define a public 'QT_NO_PRINTER'
find_package(${QT_PKG} COMPONENTS PrintSupport QUIET)
if(CMAKE_SYSTEM_NAME NOT STREQUAL "iOS")
# QGIS will define a public 'QT_NO_PRINTER' if PrintSupport is not found
find_package(${QT_PKG} COMPONENTS PrintSupport OpenGL REQUIRED)
endif()

find_package(QGIS COMPONENTS Core Analysis REQUIRED)
find_package(PROJ REQUIRED)
Expand Down

0 comments on commit 0d2dfaa

Please sign in to comment.