From bafe75f0b0c63fbf5df66faebfdae1ed75d1b617 Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 10 Apr 2013 09:44:09 +0000 Subject: [PATCH] CMake: Deduplicate entries in DEAL_II_USER_INCLUDE_DIRS git-svn-id: https://svn.dealii.org/trunk@29238 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_finalize.cmake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deal.II/cmake/setup_finalize.cmake b/deal.II/cmake/setup_finalize.cmake index e5d1ae9ab8..d30d86744e 100644 --- a/deal.II/cmake/setup_finalize.cmake +++ b/deal.II/cmake/setup_finalize.cmake @@ -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) -- 2.39.5