From 680a7ce979309531e97169e3b427728967476969 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 10 May 2012 09:57:07 -0700 Subject: [PATCH] Adding the SYSTEM flag for boost and python headers --- cpp/ycm/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index e248621c..2e986bb5 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -21,7 +21,12 @@ project( indexer ) find_package( PythonLibs REQUIRED ) +# The SYSTEM flag makes sure that -isystem[header path] is passed to the +# compiler instead of the standard -I[header path]. Headers included with +# -isystem do not generate warnings (and they shouldn't; e.g. boost warnings are +# just noise for us since we won't be changing them). include_directories( + SYSTEM ${BoostParts_SOURCE_DIR} ${PYTHON_INCLUDE_DIRS} )