From: vsr Date: Thu, 14 Nov 2013 15:57:13 +0000 (+0000) Subject: Rollback previous changes - now a list is empty if passed list of components is alway... X-Git-Tag: BR_hydro_v_0_3_1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2721b254a3c18cf4bbaa428db4815ca64997f8d7;p=modules%2Fkernel.git Rollback previous changes - now a list is empty if passed list of components is always empty. --- 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) #########################################################################