From e4e57956699a6087bbc7012ebe42df0c7b07aeaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 27 May 2020 13:00:05 +0200 Subject: [PATCH] modules: properly list the transitive dependency of Primitives on GL. --- modules/FindMagnum.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index 03b2e2c53..bb57335cf 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -417,6 +417,10 @@ elseif(CORRADE_TARGET_WINDOWS) endif() set(_MAGNUM_Primitives_DEPENDENCIES MeshTools Trade) +if(MAGNUM_TARGET_GL) + # GL not required by Primitives themselves, but transitively by MeshTools + list(APPEND _MAGNUM_Primitives_DEPENDENCIES GL) +endif() set(_MAGNUM_SceneGraph_DEPENDENCIES ) set(_MAGNUM_Shaders_DEPENDENCIES GL) set(_MAGNUM_Text_DEPENDENCIES TextureTools)