summaryrefslogtreecommitdiffstats
path: root/Modules/FindwxWidgets.cmake
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-04-16 15:31:13 (GMT)
committerDavid Cole <david.cole@kitware.com>2008-04-16 15:31:13 (GMT)
commit052b82c382250368ece9cf9b0954181b6dcd34df (patch)
tree3a2f9a283ec08fb7efd2dc539ad1ab480befd0dc /Modules/FindwxWidgets.cmake
parentc7b71de086c42aa12082db1c2b339dc9f983d6a7 (diff)
downloadCMake-052b82c382250368ece9cf9b0954181b6dcd34df.zip
CMake-052b82c382250368ece9cf9b0954181b6dcd34df.tar.gz
CMake-052b82c382250368ece9cf9b0954181b6dcd34df.tar.bz2
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.
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r--Modules/FindwxWidgets.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake
index 07dd29f..0007ee3 100644
--- a/Modules/FindwxWidgets.cmake
+++ b/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.
#