From 9613e0b2b259ee5963332275c84d4a7fdff4696b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 14 Jun 2016 08:28:32 +0200 Subject: [PATCH] modules: properly handle platforms with empty CMAKE_FIND_LIBRARY_PREFIXES. For example Windows with MSVC. The variable is set to empty list, which we need to preserve when setting it back. Otherwise CMake complains loudly. --- modules/FindMagnum.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index 5c88350fe..ef0058348 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -422,7 +422,7 @@ foreach(_component ${Magnum_FIND_COMPONENTS}) MAGNUM_${_COMPONENT}_LIBRARY_RELEASE) # Reset back - set(CMAKE_FIND_LIBRARY_PREFIXES ${_tmp_prefixes}) + set(CMAKE_FIND_LIBRARY_PREFIXES "${_tmp_prefixes}") endif() # Library location for libraries/plugins