From ada1824dc513b89a44aea5a8db955652ff7ce8f2 Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Tue, 10 Dec 2019 14:23:52 +0100 Subject: FindwxWidgets: Add support for 3.1.3 on macOS Previously only -framework was used starting with 3.1.3 -weak_framework might also be used and has to be handled. --- Modules/FindwxWidgets.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 4334e22..93ac51d 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -852,6 +852,8 @@ else() separate_arguments(wxWidgets_LIBRARIES) string(REPLACE "-framework;" "-framework " wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}") + string(REPLACE "-weak_framework;" "-weak_framework " + wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}") string(REPLACE "-arch;" "-arch " wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}") string(REPLACE "-isysroot;" "-isysroot " -- cgit v0.12