Browse Source

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.
Tobias Taschner 6 years ago
parent
commit
ada1824dc5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Modules/FindwxWidgets.cmake

+ 2 - 0
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 "