From a69712d30f2766689d0aa131033d41cf2897589b Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 27 Jul 2016 21:43:31 +0200 Subject: [PATCH] Fix CMake module ListToString --- cmake/modules/ListToString.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/ListToString.cmake b/cmake/modules/ListToString.cmake index 88d2b0b..214e276 100644 --- a/cmake/modules/ListToString.cmake +++ b/cmake/modules/ListToString.cmake @@ -6,7 +6,7 @@ if(NOT DEFINED LIST_TO_STRING_EXISTS) list(LENGTH input_list list_length) # if the list has 0 or 1 element, there is no need to loop over if(list_length LESS 2) - set(res "${input_list}") + set(res "${prefix}${input_list}${suffix}") else() math(EXPR last_element_index "${list_length} - 1") foreach(index RANGE ${last_element_index})