From e58a432cbe6a16a81459a4eca5c82dc45283b323 Mon Sep 17 00:00:00 2001 From: inv Date: Fri, 15 Nov 2013 07:54:30 +0000 Subject: [PATCH] Synchronize adm files --- CMakeModules/SalomeMacros.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeModules/SalomeMacros.cmake b/CMakeModules/SalomeMacros.cmake index df81302..a402d66 100755 --- a/CMakeModules/SalomeMacros.cmake +++ b/CMakeModules/SalomeMacros.cmake @@ -846,7 +846,14 @@ ENDMACRO(SALOME_GENERATE_TESTS_ENVIRONMENT) MACRO(SALOME_APPEND_LIST_OF_LIST result element_list) SET(_tmp_res) STRING(REPLACE ";" "," _tmp_res "${${element_list}}") - SET(${result} "${${result}};${_tmp_res}") # LIST(APPEND ...) doesn't handle well empty elements!? + + 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 redundant ';' at the beginning of the list + ENDIF() + ENDMACRO(SALOME_APPEND_LIST_OF_LIST) ######################################################################### -- 2.39.2