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

BUG: There are compiler problems with wxWidgets and INCLUDE_DIRECTORIES(SYSTEM ...) use on the Mac. Set variable wxWidgets_INCLUDE_DIRS_NO_SYSTEM on the Mac in FindwxWidgets.cmake to avoid these problems.

David Cole 17 лет назад
Родитель
Сommit
052b82c382
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      Modules/FindwxWidgets.cmake

+ 12 - 0
Modules/FindwxWidgets.cmake

@@ -132,6 +132,18 @@ SET(wxWidgets_LIBRARIES    "")
 SET(wxWidgets_LIBRARY_DIRS "")
 SET(wxWidgets_CXX_FLAGS    "")
 
+# Using SYSTEM with INCLUDE_DIRECTORIES in conjunction with wxWidgets on
+# the Mac produces compiler errors. Set wxWidgets_INCLUDE_DIRS_NO_SYSTEM
+# to prevent UsewxWidgets.cmake from using SYSTEM.
+#
+# See cmake mailing list discussions for more info:
+#   http://www.cmake.org/pipermail/cmake/2008-April/021115.html
+#   http://www.cmake.org/pipermail/cmake/2008-April/021146.html
+#
+IF(APPLE)
+  SET(wxWidgets_INCLUDE_DIRS_NO_SYSTEM 1)
+ENDIF(APPLE)
+
 # DEPRECATED: This is a patch to support the DEPRECATED use of
 # wxWidgets_USE_LIBS.
 #