Salome HOME
projects
/
tools
/
documentation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2ef705
)
Synchronize adm files
author
inv
<inv@opencascade.com>
Wed, 20 Nov 2013 17:12:45 +0000
(17:12 +0000)
committer
inv
<inv@opencascade.com>
Wed, 20 Nov 2013 17:12:45 +0000
(17:12 +0000)
CMakeModules/SalomeMacros.cmake
patch
|
blob
|
history
diff --git
a/CMakeModules/SalomeMacros.cmake
b/CMakeModules/SalomeMacros.cmake
index a402d661b5f7a78c259128008b641d3fe8f864b5..7d2104e424854270855c4759ae54f8a5e78468ee 100755
(executable)
--- a/
CMakeModules/SalomeMacros.cmake
+++ b/
CMakeModules/SalomeMacros.cmake
@@
-847,7
+847,8
@@
MACRO(SALOME_APPEND_LIST_OF_LIST result element_list)
SET(_tmp_res)
STRING(REPLACE ";" "," _tmp_res "${${element_list}}")
- LIST(LENGTH result _list_len)
+ # Yet another CMake stupidity - LIST(LENGTH ";" var) returns 0
+ STRING(LENGTH result _list_len)
IF(NOT _list_len EQUAL 0)
SET(${result} "${${result}}${_tmp_res};") # LIST(APPEND ...) doesn't handle well empty elements!?
ELSE()