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.
This commit is contained in:
Tobias Taschner
2019-12-10 14:23:52 +01:00
committed by Brad King
parent 1b4482f65d
commit ada1824dc5

View File

@@ -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 "