Просмотр исходного кода

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 лет назад
Родитель
Сommit
ada1824dc5
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      Modules/FindwxWidgets.cmake

+ 2 - 0
Modules/FindwxWidgets.cmake

@@ -852,6 +852,8 @@ else()
         separate_arguments(wxWidgets_LIBRARIES)
         separate_arguments(wxWidgets_LIBRARIES)
         string(REPLACE "-framework;" "-framework "
         string(REPLACE "-framework;" "-framework "
           wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}")
           wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}")
+        string(REPLACE "-weak_framework;" "-weak_framework "
+          wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}")
         string(REPLACE "-arch;" "-arch "
         string(REPLACE "-arch;" "-arch "
           wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}")
           wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}")
         string(REPLACE "-isysroot;" "-isysroot "
         string(REPLACE "-isysroot;" "-isysroot "