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

Loading…
Cancel
Save