File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ option(GLBINDING_DEBUG_OUTPUT "Enable glbinding debug output for each called Ope
5
5
6
6
if (ENABLE_OPENGL)
7
7
if (ENABLE_OPENGLES2)
8
+ message (STATUS "Checking for OpenGLES2" )
9
+
8
10
set (HAVE_OPENGL TRUE )
9
11
list (APPEND OPENGL_COMPILE_DEFINITIONS "USE_OPENGLES2" )
10
12
@@ -14,6 +16,8 @@ if(ENABLE_OPENGL)
14
16
list (APPEND OPENGL_LINK_LIBRARIES "${GLESV2_LIBRARIES} " )
15
17
endif ()
16
18
else ()
19
+ message (STATUS "Checking for OpenGL" )
20
+
17
21
set (OpenGL_GL_PREFERENCE "LEGACY" )
18
22
find_package (OpenGL)
19
23
if (OPENGL_FOUND)
@@ -44,13 +48,19 @@ if(ENABLE_OPENGL)
44
48
endif ()
45
49
endif ()
46
50
47
- if (HAVE_OPENGL)
51
+ if (NOT HAVE_OPENGL)
52
+ message (STATUS " OpenGL not found" )
53
+ else ()
48
54
add_library (OpenGL INTERFACE )
49
55
set_target_properties (OpenGL PROPERTIES
50
56
INTERFACE_LINK_LIBRARIES "${OPENGL_LINK_LIBRARIES} "
51
57
INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_INCLUDE_DIRECTORIES} "
52
58
INTERFACE_COMPILE_DEFINITIONS "${OPENGL_COMPILE_DEFINITIONS} "
53
59
)
60
+
61
+ message (STATUS " OPENGL_LINK_LIBRARIES: ${OPENGL_LINK_LIBRARIES} " )
62
+ message (STATUS " OPENGL_INCLUDE_DIRECTORIES: ${OPENGL_INCLUDE_DIRECTORIES} " )
63
+ message (STATUS " OPENGL_COMPILE_DEFINITIONS: ${OPENGL_COMPILE_DEFINITIONS} " )
54
64
endif ()
55
65
endif ()
56
66
You can’t perform that action at this time.
0 commit comments