From c853f39f26693920d0d152aa532fdf590d2b7e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 30 Jun 2015 00:23:06 +0200 Subject: [PATCH] modules: this made no sense. if(SOMETHING) # ... else() # SOMETHING is not set, this statement does nothing unset(SOMETING) endif() --- modules/FindMagnum.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index 80681ca12..d75d20bfa 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -508,7 +508,7 @@ foreach(component ${Magnum_FIND_COMPONENTS}) list(APPEND _MAGNUM_${_COMPONENT}_DEPENDENCY_LIBRARIES ${MAGNUM_${_DEPENDENCY}_LIBRARY} ${_MAGNUM_${_DEPENDENCY}_LIBRARIES}) list(APPEND _MAGNUM_${_COMPONENT}_DEPENDENCY_INCLUDE_DIRS ${MAGNUM_${_DEPENDENCY}_INCLUDE_DIRS}) else() - unset(MAGNUM_${_DEPENDENCY}_LIBRARY) + unset(MAGNUM_${_COMPONENT}_LIBRARY) endif() endforeach()