diff --git a/doc/changelog.dox b/doc/changelog.dox index c5484881c..299a2e88e 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -136,6 +136,8 @@ See also: and @ref Magnum/Platform/GlfwApplication.h (see [mosra/magnum#389](https://github.com/mosra/magnum/pull/389)) - `FindSDL2.cmake` got updated to link to all dependencies when using a statically built SDL on Windows +- `FindMagnum.cmake` now properly recognizes an optional dependency between + @ref DebugTools and @ref Trade on GL-less builds @subsection changelog-latest-bugfixes Bug fixes diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index f471cd792..87ce8da81 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -363,17 +363,19 @@ set(_MAGNUM_EXECUTABLE_COMPONENT_LIST # Inter-component dependencies set(_MAGNUM_Audio_DEPENDENCIES ) -set(_MAGNUM_DebugTools_DEPENDENCIES ) +# Trade is used by CompareImage. If Trade is not enabled, CompareImage is not +# compiled at all. +set(_MAGNUM_DebugTools_DEPENDENCIES Trade) +set(_MAGNUM_DebugTools_Trade_DEPENDENCY_IS_OPTIONAL ON) +# MeshTools, Primitives, SceneGraph and Shaders are used only for GL renderers +# in DebugTools. All of this is optional, compiled in only if the base library +# was selected. if(MAGNUM_TARGET_GL) - # MeshTools, Primitives, SceneGraph and Shaders are used only for GL - # renderers. All of this is optional, compiled in only if the base library - # was selected. - list(APPEND _MAGNUM_DebugTools_DEPENDENCIES MeshTools Primitives SceneGraph Shaders Trade GL) + list(APPEND _MAGNUM_DebugTools_DEPENDENCIES MeshTools Primitives SceneGraph Shaders GL) set(_MAGNUM_DebugTools_MeshTools_DEPENDENCY_IS_OPTIONAL ON) set(_MAGNUM_DebugTools_Primitives_DEPENDENCY_IS_OPTIONAL ON) set(_MAGNUM_DebugTools_SceneGraph_DEPENDENCY_IS_OPTIONAL ON) set(_MAGNUM_DebugTools_Shaders_DEPENDENCY_IS_OPTIONAL ON) - set(_MAGNUM_DebugTools_Trade_DEPENDENCY_IS_OPTIONAL ON) set(_MAGNUM_DebugTools_GL_DEPENDENCY_IS_OPTIONAL ON) endif()