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>
This commit is contained in:
Albert Astals Cid 2019-02-12 17:12:25 +01:00 committed by Simon Hausmann
parent 6235fd68d5
commit 9a01b4312b

View File

@ -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)