From 2721b254a3c18cf4bbaa428db4815ca64997f8d7 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 14 Nov 2013 15:57:13 +0000 Subject: [PATCH] Rollback previous changes - now a list is empty if passed list of components is always empty. --- salome_adm/cmake_files/SalomeMacros.cmake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/salome_adm/cmake_files/SalomeMacros.cmake b/salome_adm/cmake_files/SalomeMacros.cmake index 5dc41fcb6..df81302fb 100755 --- a/salome_adm/cmake_files/SalomeMacros.cmake +++ b/salome_adm/cmake_files/SalomeMacros.cmake @@ -846,13 +846,7 @@ ENDMACRO(SALOME_GENERATE_TESTS_ENVIRONMENT) MACRO(SALOME_APPEND_LIST_OF_LIST result element_list) SET(_tmp_res) STRING(REPLACE ";" "," _tmp_res "${${element_list}}") - - LIST(LENGTH result _list_len) - IF(NOT _list_len EQUAL 0) - SET(${result} "${${result}};${_tmp_res}") # LIST(APPEND ...) doesn't handle well empty elements!? - ELSE() - SET(${result} "${_tmp_res}") # to avoid first redundant ; at the beginning of the list - ENDIF() + SET(${result} "${${result}};${_tmp_res}") # LIST(APPEND ...) doesn't handle well empty elements!? ENDMACRO(SALOME_APPEND_LIST_OF_LIST) ######################################################################### -- 2.39.2