summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTobias Taschner <tct2k@users.noreply.github.com>2019-12-10 13:23:52 (GMT)
committerBrad King <brad.king@kitware.com>2019-12-10 14:11:14 (GMT)
commitada1824dc513b89a44aea5a8db955652ff7ce8f2 (patch)
tree0f8d460f9691714ca7a3f3b1f3e5495164e1eb91 /Modules
parent1b4482f65dd41f21ec8abc0777b8dc1f0381bbd6 (diff)
downloadCMake-ada1824dc513b89a44aea5a8db955652ff7ce8f2.zip
CMake-ada1824dc513b89a44aea5a8db955652ff7ce8f2.tar.gz
CMake-ada1824dc513b89a44aea5a8db955652ff7ce8f2.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindwxWidgets.cmake2
1 files changed, 2 insertions, 0 deletions
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 "