Browse Source

BUG: Fix to support arch and isysroot compilation options on MAC (Bug 5007).

Miguel A. Figueroa-Villanueva 18 years ago
parent
commit
d22df5bef4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Modules/FindwxWidgets.cmake

+ 4 - 0
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[^;]+"