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.
This commit is contained in:
parent
c7b71de086
commit
052b82c382
|
@ -132,6 +132,18 @@ SET(wxWidgets_LIBRARIES "")
|
||||||
SET(wxWidgets_LIBRARY_DIRS "")
|
SET(wxWidgets_LIBRARY_DIRS "")
|
||||||
SET(wxWidgets_CXX_FLAGS "")
|
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
|
# DEPRECATED: This is a patch to support the DEPRECATED use of
|
||||||
# wxWidgets_USE_LIBS.
|
# wxWidgets_USE_LIBS.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue