Fix GLESv2 detection compatibility with cmake>=3.0.

Closes: #869742
Thanks: Steve Langasek
parent bd0b2f07
......@@ -65,8 +65,6 @@ CXXFLAGS := ${CXXFLAGS} ${ARCH_CXX_FLAGS}
LDFLAGS += -Wl,--as-needed
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),armel armhf))
EGL_LDFLAGS=$(shell pkg-config egl --libs)
OPENGLES_LDFLAGS=$(shell pkg-config glesv2 --libs)
ARM_DEFINES=-D OSG_GL1_AVAILABLE:BOOL=OFF \
-D OSG_GL2_AVAILABLE:BOOL=OFF \
-D OSG_GL3_AVAILABLE:BOOL=OFF \
......@@ -78,8 +76,8 @@ ARM_DEFINES=-D OSG_GL1_AVAILABLE:BOOL=OFF \
-D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=OFF \
-D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=OFF \
-D OSG_CPP_EXCEPTIONS_AVAILABLE:BOOL=OFF \
-D OPENGL_gl_LIBRARY:STRING="${OPENGLES_LDFLAGS}" \
-D OPENGL_egl_LIBRARY:STRING="${EGL_LDFLAGS}"
-D OPENGL_gl_LIBRARY:STRING=/usr/lib/arm-linux-gnueabihf/libGLESv2.so \
-D OPENGL_egl_LIBRARY:STRING=/usr/lib/arm-linux-gnueabihf/libEGL.so
endif
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment