From d180e4469ee200494b4c78b448c1984dfdfbecff Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 21 Jun 2015 13:29:04 -0400 Subject: [PATCH] Disable warnings for wx headers ...by telling CMake to use -isystem for the static wx include directory. AFAICT, this is already done by CMake's FindwxWidgets script in the shared case. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f1ad0fb67..a8fc1f0ae7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -781,7 +781,7 @@ if(NOT DISABLE_WX AND NOT ANDROID) message(FATAL_ERROR "wxWidgets in Externals is not compatible with your platform") endif() - include_directories( + include_directories(SYSTEM Externals/wxWidgets3 Externals/wxWidgets3/include) add_subdirectory(Externals/wxWidgets3)