From d22df5bef40c1c922696d8fab78832efb66a5841 Mon Sep 17 00:00:00 2001 From: "Miguel A. Figueroa-Villanueva" Date: Mon, 12 Nov 2007 13:52:45 -0500 Subject: [PATCH] BUG: Fix to support arch and isysroot compilation options on MAC (Bug 5007). --- Modules/FindwxWidgets.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 0594d1059..5ff9217b9 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -591,6 +591,10 @@ ELSE(WIN32_STYLE_FIND) SEPARATE_ARGUMENTS(wxWidgets_LIBRARIES) STRING(REPLACE "-framework;" "-framework " wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}") + STRING(REPLACE "-arch;" "-arch " + wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}") + STRING(REPLACE "-isysroot;" "-isysroot " + wxWidgets_LIBRARIES "${wxWidgets_LIBRARIES}") # extract linkdirs (-L) for rpath (i.e., LINK_DIRECTORIES) STRING(REGEX MATCHALL "-L[^;]+"