Commit 31a94118 authored by Leif Walsh's avatar Leif Walsh

MX-1217 fix TokuMergeLibs to handle empty libs

parent 8db687e6
...@@ -43,7 +43,9 @@ FOREACH(LIB ${STATIC_LIBS}) ...@@ -43,7 +43,9 @@ FOREACH(LIB ${STATIC_LIBS})
LIST(LENGTH LIB_OBJ_LIST LENGTH_WITH_DUPS) LIST(LENGTH LIB_OBJ_LIST LENGTH_WITH_DUPS)
SET(LIB_OBJ_LIST_NO_DUPS ${LIB_OBJ_LIST}) SET(LIB_OBJ_LIST_NO_DUPS ${LIB_OBJ_LIST})
IF (LENGTH_WITH_DUPS GREATER 0)
LIST(REMOVE_DUPLICATES LIB_OBJ_LIST_NO_DUPS) LIST(REMOVE_DUPLICATES LIB_OBJ_LIST_NO_DUPS)
ENDIF ()
LIST(LENGTH LIB_OBJ_LIST_NO_DUPS LENGTH_WITHOUT_DUPS) LIST(LENGTH LIB_OBJ_LIST_NO_DUPS LENGTH_WITHOUT_DUPS)
IF(LENGTH_WITH_DUPS EQUAL LENGTH_WITHOUT_DUPS) IF(LENGTH_WITH_DUPS EQUAL LENGTH_WITHOUT_DUPS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment