From 13622cf7ae6697121e064abc3d2b4c5433240fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 30 Jun 2015 00:24:18 +0200 Subject: [PATCH] modules: avoid repeating the same include dirs over and over. Similarly to the _LIBRARIES above, just add stuff that is not already there. --- modules/FindMagnum.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index d75d20bfa..884fd3c59 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -506,7 +506,7 @@ foreach(component ${Magnum_FIND_COMPONENTS}) string(TOUPPER ${dependency} _DEPENDENCY) if(MAGNUM_${_DEPENDENCY}_LIBRARY) list(APPEND _MAGNUM_${_COMPONENT}_DEPENDENCY_LIBRARIES ${MAGNUM_${_DEPENDENCY}_LIBRARY} ${_MAGNUM_${_DEPENDENCY}_LIBRARIES}) - list(APPEND _MAGNUM_${_COMPONENT}_DEPENDENCY_INCLUDE_DIRS ${MAGNUM_${_DEPENDENCY}_INCLUDE_DIRS}) + list(APPEND _MAGNUM_${_COMPONENT}_DEPENDENCY_INCLUDE_DIRS ${_MAGNUM_${_DEPENDENCY}_INCLUDE_DIRS}) else() unset(MAGNUM_${_COMPONENT}_LIBRARY) endif()