summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-12 17:12:25 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2019-02-12 17:01:36 +0000
commit9a01b4312bbf0336e9a7fb4304c6757db9c0709e (patch)
tree9d7e7a35c3c30a12e5465e679114a244cee8bf5e /cmake
parent6235fd68d53340e5b51351366ae6f6775dd686c6 (diff)
cmake: set WrapOpenGL_FOUND to ON
Otherwise the cmake summary at the end says -- The following packages have not been found: * WrapOpenGL It's OpenGL or GLESv2 that will show there as missing if needed Change-Id: I182f1299b86e1a4e24762d0bad6533c6136cbbcc Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindWrapOpenGL.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/FindWrapOpenGL.cmake b/cmake/FindWrapOpenGL.cmake
index 4eefdfa811..c97ba0e466 100644
--- a/cmake/FindWrapOpenGL.cmake
+++ b/cmake/FindWrapOpenGL.cmake
@@ -2,6 +2,7 @@
# Logic derived from mkspecs/features/unix/opengl.prf: prefer GLESv2 over GL
if(TARGET WrapOpenGL)
+ set(WrapOpenGL_FOUND ON)
return()
endif()
@@ -14,3 +15,4 @@ else()
find_package(OpenGL)
target_link_libraries(WrapOpenGL INTERFACE OpenGL::GL)
endif()
+set(WrapOpenGL_FOUND ON)