mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
FindwxWidgets: Prevent searching libraries multiple times
If the user has specified common libraries, remove the duplicates.
This commit is contained in:
@@ -292,6 +292,9 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
||||
list(APPEND wxWidgets_FIND_COMPONENTS ${wxWidgets_COMMON_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# Remove duplicates, for example when user has specified common libraries.
|
||||
list(REMOVE_DUPLICATES wxWidgets_FIND_COMPONENTS)
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WIN32: Helper MACROS
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user