From 96e4930684dd8505ccf27537c2caff059f404e3b Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 7 Sep 2013 10:50:28 -0700 Subject: [PATCH] Only setting -isystem on Mac OS X --- cpp/ycm/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 4975e115..3c0654d8 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -123,8 +123,8 @@ endif() # This is a workaround for a CMake bug with include_directories(SYSTEM ...) # on Mac OS X. Bug report: http://public.kitware.com/Bug/view.php?id=10837 -if (NOT MSVC) -set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " ) +if ( APPLE ) + set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " ) endif() # The SYSTEM flag makes sure that -isystem[header path] is passed to the