]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Deduplicate entries in DEAL_II_USER_INCLUDE_DIRS
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Apr 2013 09:44:09 +0000 (09:44 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Apr 2013 09:44:09 +0000 (09:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@29238 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_finalize.cmake

index e5d1ae9ab83c9b03e1cd114f70026fec84ed707d..d30d86744e545f83215f803a8882bfb058aae747 100644 (file)
@@ -35,7 +35,15 @@ FOREACH(_flags ${DEAL_II_USED_FLAGS})
 ENDFOREACH()
 
 #
-# Depulicate entries in DEAL_II_EXTERNAL_LIBRARIES(_...):
+# Deduplicate entries in DEAL_II_USER_INCLUDE_DIRS
+#
+IF(NOT "${DEAL_II_USER_INCLUDE_DIRS}" STREQUAL "")
+  LIST(REMOVE_DUPLICATES DEAL_II_USER_INCLUDE_DIRS)
+ENDIF()
+
+#
+# Deduplicate entries in DEAL_II_EXTERNAL_LIBRARIES(_...)
+# in reverse order:
 #
 IF(NOT "${DEAL_II_EXTERNAL_LIBRARIES}" STREQUAL "")
   LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)

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.