FindwxWidgets: Prevent searching libraries multiple times

If the user has specified common libraries, remove the duplicates.
This commit is contained in:
Maarten Bent
2023-10-08 18:27:25 +02:00
committed by Brad King
parent 55072adf16
commit d76242ed9f
+3
View File
@@ -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
#------------------------------------------------------------------- #-------------------------------------------------------------------