#
# Depulicate entries in DEAL_II_EXTERNAL_LIBRARIES(_...):
#
-LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)
-LIST(REMOVE_DUPLICATES DEAL_II_EXTERNAL_LIBRARIES)
-LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)
+IF(NOT "${DEAL_II_EXTERNAL_LIBRARIES}" STREQUAL "")
+ LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)
+ LIST(REMOVE_DUPLICATES DEAL_II_EXTERNAL_LIBRARIES)
+ LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)
+ENDIF()
FOREACH(build ${DEAL_II_BUILD_TYPES})
- LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES_${build})
- LIST(REMOVE_DUPLICATES DEAL_II_EXTERNAL_LIBRARIES_${build})
- LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES_${build})
+ IF(NOT "${DEAL_II_EXTERNAL_LIBRARIES_${build}}" STREQUAL "")
+ LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES_${build})
+ LIST(REMOVE_DUPLICATES DEAL_II_EXTERNAL_LIBRARIES_${build})
+ LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES_${build})
+ ENDIF()
ENDFOREACH()