diff options
author | Anthony J. Bentley <anthonyjbentley@gmail.com> | 2012-05-14 19:42:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-05-14 20:01:35 (GMT) |
commit | 16ee19731e13abcd7d36d18822f61b7679322631 (patch) | |
tree | 78975730edaef9580d600994a8a319ccdd32179a /Modules/FindwxWidgets.cmake | |
parent | 6218aba37ad9990304f91bf6c27e014fbf8ad684 (diff) | |
download | CMake-16ee19731e13abcd7d36d18822f61b7679322631.zip CMake-16ee19731e13abcd7d36d18822f61b7679322631.tar.gz CMake-16ee19731e13abcd7d36d18822f61b7679322631.tar.bz2 |
FindwxWidgets: Do not use -isystem on OpenBSD (#13219)
Set wxWidgets_INCLUDE_DIRS_NO_SYSTEM on OpenBSD in addition to Apple to
prevent UsewxWidgets.cmake from using the include_directories SYSTEM
option.
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r-- | Modules/FindwxWidgets.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 0bc6172..865a6c5 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -167,9 +167,9 @@ SET(wxWidgets_CXX_FLAGS "") # http://www.cmake.org/pipermail/cmake/2008-April/021115.html # http://www.cmake.org/pipermail/cmake/2008-April/021146.html # -IF(APPLE) +IF(APPLE OR CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD") SET(wxWidgets_INCLUDE_DIRS_NO_SYSTEM 1) -ENDIF(APPLE) +ENDIF() # DEPRECATED: This is a patch to support the DEPRECATED use of # wxWidgets_USE_LIBS. |