Salome HOME
Rollback previous changes - now a list is empty if passed list of components is alway...
authorvsr <vsr@opencascade.com>
Thu, 14 Nov 2013 15:57:13 +0000 (15:57 +0000)
committervsr <vsr@opencascade.com>
Thu, 14 Nov 2013 15:57:13 +0000 (15:57 +0000)
salome_adm/cmake_files/SalomeMacros.cmake

index 5dc41fcb6e8bc732ba91db9eb81f53456b1a9f63..df81302fbddbf6cd18860d05105ae95b7a71f802 100755 (executable)
@@ -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)
 
 #########################################################################