]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 29 Sep 2012 09:44:18 +0000 (09:44 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 29 Sep 2012 09:44:18 +0000 (09:44 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26881 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_finalize.cmake

index 1e7fe7503b6b90fdb0400fb6f48f5d3de10a1db2..68bf8892a0df2f3a8d807162e02c5bdaa1cd0bf2 100644 (file)
@@ -28,13 +28,17 @@ ENDFOREACH()
 #
 # 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()
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.