Skip to content

Commit

Permalink
Remove Cmake list duplicates only if list exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Koeppe committed Apr 19, 2019
1 parent ecedfb5 commit 7c73236
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cmake/Modules/EttercapLibCheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,15 @@ if(ENABLE_LUA)
endif()

# Clean up
list(REMOVE_DUPLICATES EC_INCLUDE)
list(REMOVE_DUPLICATES EC_UI_INCLUDE)
if(EC_INCLUDE)
list(REMOVE_DUPLICATES EC_INCLUDE)
endif()
if(EC_UI_INCLUDE)
list(REMOVE_DUPLICATES EC_UI_INCLUDE)
endif()
if(EC_LIBS)
list(REMOVE_DUPLICATES EC_LIBS)
endif()
if(EC_UI_LIBS)
list(REMOVE_DUPLICATES EC_UI_LIBS)
endif()

0 comments on commit 7c73236

Please sign in to comment.