瀏覽代碼

Merge topic 'FindwxWidgets-OpenBSD'

16ee197 FindwxWidgets: Do not use -isystem on OpenBSD (#13219)
David Cole 13 年之前
父節點
當前提交
3e595b9ee5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Modules/FindwxWidgets.cmake

+ 2 - 2
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.