From: maier Date: Wed, 10 Apr 2013 09:44:09 +0000 (+0000) Subject: CMake: Deduplicate entries in DEAL_II_USER_INCLUDE_DIRS X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bafe75f0b0c63fbf5df66faebfdae1ed75d1b617;p=dealii-svn.git CMake: Deduplicate entries in DEAL_II_USER_INCLUDE_DIRS git-svn-id: https://svn.dealii.org/trunk@29238 0785d39b-7218-0410-832d-ea1e28bc413d --- 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)