[cmake-developers] Fwd: FindwxWidgets.cmake

Simon Wells swel024 at gmail.com
Mon Jan 11 13:18:08 EST 2016


The following code is line 191-201, I have tested without this being set on
OSX 10.11 using system clang and both self-built and brew installed
wxwidgets with no problems, Whether its still an issue using gcc on osx or
some other configuration i am unsure, but is it worth being more specific
than just If APPLE for this bug-fix/workaround


# 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:
# https://cmake.org/pipermail/cmake/2008-April/021115.html
# https://cmake.org/pipermail/cmake/2008-April/021146.html
#
if(APPLE OR CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD")
set(wxWidgets_INCLUDE_DIRS_NO_SYSTEM 1)
endif()


thanks

Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160112/2e544ae1/attachment.html>


More information about the cmake-developers mailing list