Browse Source

Put back #cmakedefine MAGNUM_TARGET_GLES3 into configure.h.

The change in 87c7eea1e2 caused a breakage
with old FindMagnum modules, which use if(MAGNUM_TARGET_GLES3) to decide
if they should link to libGLES.

This is now still only defined for deprecated builds, so non-deprecated
builds with old FindMagnum will fail.
pull/638/head
Vladimír Vondruš 2 years ago
parent
commit
f4c03ad7a3
  1. 10
      src/Magnum/configure.h.cmake

10
src/Magnum/configure.h.cmake

@ -62,12 +62,10 @@
#endif
/* MAGNUM_TARGET_GLES3 used to be an inverse of MAGNUM_TARGET_GLES2 in an
anticipation of there eventually being GLES 4. Used very rarely in the
internals and only led to confusion. Deliberate double space after the
#define to avoid being unconditionally matched by older FindMagnum
modules. */
#if defined(MAGNUM_TARGET_GLES) && !defined(MAGNUM_TARGET_GLES2)
#define MAGNUM_TARGET_GLES3
#endif
internals and only led to confusion. It's however still a cmakedefine so old
FindMagnum modules, which use it for linking OpenGLES3 libraries, can detect
and use it. */
#cmakedefine MAGNUM_TARGET_GLES3
#endif
#endif // kate: hl c++

Loading…
Cancel
Save