From 2f86601db1ff8f198666a07f4b25d113760c879c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 6 Feb 2020 16:45:18 +0000 Subject: [PATCH] always define GLM_FORCE_CTOR_INIT when using glm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2a4ed756c6d18937d2c720243652df7a2d629959 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88121 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- RepositoryExternal.mk | 11 ++++++++++- slideshow/Library_OGLTrans.mk | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 405ad054510e..1f36dda8f202 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -90,12 +90,21 @@ endif # SYSTEM_MDDS ifneq ($(SYSTEM_GLM),) -gb_LinkTarget__use_glm_headers := +define gb_LinkTarget__use_glm_headers +$(call gb_LinkTarget_add_defs,$(1),\ + -DGLM_FORCE_CTOR_INIT \ +) + +endef + gb_ExternalProject__use_glm_headers := else define gb_LinkTarget__use_glm_headers +$(call gb_LinkTarget_add_defs,$(1),\ + -DGLM_FORCE_CTOR_INIT \ +) $(call gb_LinkTarget_use_unpacked,$(1),glm) $(call gb_LinkTarget_set_include,$(1),\ $(GLM_CFLAGS) \ diff --git a/slideshow/Library_OGLTrans.mk b/slideshow/Library_OGLTrans.mk index 9b64181d6a46..4eca2a1ecaa3 100644 --- a/slideshow/Library_OGLTrans.mk +++ b/slideshow/Library_OGLTrans.mk @@ -17,7 +17,6 @@ endif $(eval $(call gb_Library_add_defs,OGLTrans,\ -DGLM_FORCE_RADIANS \ - -DGLM_FORCE_CTOR_INIT \ )) $(eval $(call gb_Library_use_sdk_api,OGLTrans))