[Cmake-commits] [cmake-commits] david.cole committed FindwxWidgets.cmake 1.18 1.19
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Apr 16 11:31:17 EDT 2008
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv23831
Modified Files:
FindwxWidgets.cmake
Log Message:
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.
Index: FindwxWidgets.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindwxWidgets.cmake,v
retrieving revision 1.18
retrieving revision 1.19
diff -C 2 -d -r1.18 -r1.19
*** FindwxWidgets.cmake 18 Jan 2008 20:52:53 -0000 1.18
--- FindwxWidgets.cmake 16 Apr 2008 15:31:13 -0000 1.19
***************
*** 133,136 ****
--- 133,148 ----
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.
More information about the Cmake-commits
mailing list