From d76242ed9fa180ae14f796b406cf913ef4a02db9 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 8 Oct 2023 18:27:25 +0200 Subject: FindwxWidgets: Prevent searching libraries multiple times If the user has specified common libraries, remove the duplicates. --- Modules/FindwxWidgets.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 933f14e..2c0dfd1 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -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 #------------------------------------------------------------------- -- cgit v0.12