mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05: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})
|
list(APPEND wxWidgets_FIND_COMPONENTS ${wxWidgets_COMMON_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Remove duplicates, for example when user has specified common libraries.
|
||||||
|
list(REMOVE_DUPLICATES wxWidgets_FIND_COMPONENTS)
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
# WIN32: Helper MACROS
|
# WIN32: Helper MACROS
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user